-
Notifications
You must be signed in to change notification settings - Fork 70
ThemeServiceProvider not found #98
Copy link
Copy link
Open
Description
I follow installation guide, which is:
laravel new themes// installed laravelcomposer require caffeinated/themes// installed packagephp 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels