laravel-themes-manager icon indicating copy to clipboard operation
laravel-themes-manager copied to clipboard

php artisan theme:make command using php is giving error

Open ekamnh opened this issue 1 year ago • 1 comments

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

ekamnh avatar May 09 '24 20:05 ekamnh

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.

gaetan-hexadog avatar May 10 '24 18:05 gaetan-hexadog

Closing the issue due to non activity.

Feel free to reopen it with more information if needed.

gaetan-hexadog avatar Aug 01 '24 13:08 gaetan-hexadog