I follow installation guide, which is:
laravel new themes // installed laravel
composer require caffeinated/themes // installed package
php artisan make:theme Bootstrap // created theme
Now works fine if I try to load view, for example bootstrap::welcome
But routes are not loaded, so I added service provider to config/app.php
Themes\Bootstrap\Providers\ThemeServiceProvider::class
And now I get error Class 'Themes\Bootstrap\Providers\ThemeServiceProvider' not found
So I update main composer.json adding PSR-4 for "themes" folder, this:
"autoload": {
"psr-4": {
"App\\": "app/",
"Themes\\": "themes/"
}
},
And now works fine...
But there is nothing regarding this step in docs, and I think that command for make theme already update composer...
What am I missing?
Thanks
I follow installation guide, which is:
laravel new themes// installed laravelcomposer require caffeinated/themes// installed packagephp artisan make:theme Bootstrap// created themeNow works fine if I try to load view, for example
bootstrap::welcomeBut routes are not loaded, so I added service provider to config/app.php
Themes\Bootstrap\Providers\ThemeServiceProvider::classAnd now I get error Class 'Themes\Bootstrap\Providers\ThemeServiceProvider' not found
So I update main composer.json adding PSR-4 for "themes" folder, this:
And now works fine...
But there is nothing regarding this step in docs, and I think that command for make theme already update composer...
What am I missing?
Thanks