Cloud HostingLaunch UnoPim on fully-managed cloud hosting — fast, secure and cost-effective plans.
Skip to content

Installation

Follow the step-by-step instructions below to manually install and set up the Auto SKU Generator extension in your UnoPim project.

Steps

1. Place the package

Download and unzip the extension. Rename the folder to AutoSkuGenerator and place it at:

packages/Webkul/AutoSkuGenerator/

2. Register the service provider

Add to bootstrap/providers.php:

php
use Webkul\AutoSkuGenerator\Providers\AutoSkuGeneratorServiceProvider;

return [
    // ...existing providers...
    AutoSkuGeneratorServiceProvider::class,
];

NOTE

This registers the AutoSkuGeneratorServiceProvider in the Laravel application's service container, allowing it to load and manage related services.

3. Update Composer autoload

In composer.json, add under autoload.psr-4:

json
"Webkul\\AutoSkuGenerator\\": "packages/Webkul/AutoSkuGenerator/src"

TIP

This configures PSR-4 autoloading so that classes under the Webkul\AutoSkuGenerator namespace can be loaded automatically from the package src directory.

4. Run the installer

Run these commands in order:

bash
composer dump-autoload
php artisan migrate
php artisan optimize:clear
CommandPurpose
composer dump-autoloadRegenerates Composer's autoloader mapping to include the newly added namespace.
php artisan migrateRuns the database migrations to create the tables required by the extension.
php artisan optimize:clearClears all cached files (bootstrap, configuration, routes, and views) to load the new changes.

5. Publish assets (optional)

If you need to publish views or config files for customization:

bash
php artisan vendor:publish --provider="Webkul\AutoSkuGenerator\Providers\AutoSkuGeneratorServiceProvider"
CommandPurpose
php artisan vendor:publish --provider="Webkul\AutoSkuGenerator\Providers\AutoSkuGeneratorServiceProvider"Publishes Auto SKU Generator package resources (such as config/views) for customization.

6. Verify

Open the Unopim admin panel — an Auto SKU Generator item should appear in the sidebar. Navigate to it to begin configuring your SKU rules.

alt text

Released under the MIT License.