›
byrcsc/laravel-whitelabel · 1.x
Reference installation and cache maintenance commands with all supported options.
Laravel Whitelabel registers two Artisan commands. Use the installer to publish package files and the clear command to invalidate repository caches.
whitelabel:installphp artisan whitelabel:install [--database] [--force]The command always attempts to publish config/whitelabel.php. In an
interactive terminal it asks whether to publish the brands migration unless a
migration is already present.
| Option | Behavior |
|---|---|
--database | Publish the brands migration without prompting |
--force | Overwrite published config and migration files |
In non-interactive use, the migration is skipped unless --database is
present:
php artisan whitelabel:install --database --no-interactionWithout --force, running the command again leaves existing config and
migration files unchanged. The command reports those files as already present.
After publishing the migration, it tells you to run php artisan migrate and
select the database driver.
The command exits with success when all requested files exist after publishing. It exits with failure if a requested file could not be published.
whitelabel:clearphp artisan whitelabel:clearWith a cached database or custom driver, the command deletes every registered brand entry, the domain index, and the package's key registry. It then flushes the inner driver. Other application cache keys remain untouched.
With the config driver or cache disabled, the command exits successfully and reports that the configured driver caches nothing.