hexadog / laravel-themes-manager

Bring multi themes support to your Laravel application with a full-featured Themes Manager
https://laravel-themes-manager.netlify.app
MIT License
144 stars 30 forks source link

php artisan theme:make command using php is giving error #84

Open ekamnh opened 3 weeks ago

ekamnh commented 3 weeks ago

Hi folks,

I need to run the theme make command like this in laravel

Artisan::call('theme:make', ['name' => 'soul']);

but giving this error

The command "theme:make" does not exist.

any solution for this

Actually I need to create child theme dynamically

Please help

gaetan-hexadog commented 3 weeks ago

Hi @ekamnh ,

it looks like your code is called before ThemesManager package has boot up. Try to add some debug point in boot function of file laravel-themes-manager/src/Providers/PackageServiceProvider.php and where you are trying to call the theme:make command to check the order of declaration.