Reputation: 23
exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Watson\Sitemap\SitemapServiceProvider' not found' in
I'm trying to apply Watson Package for generating sitemap. But I saw that error. I cannot understand why that class is not found.
Vendor\watson\sitemap... everything seems there.
The problem is increased with every new package and could not explain to myself..
I tried composer dump-autoload... php artisan optimized...
Thank you...
Upvotes: 0
Views: 1905
Reputation: 10533
In Laravel 5.1 the way you add service providers to your app/config/app.php file has changed slightly.
Instead of using:
'Watson\Sitemap\SitemapServiceProvider'
Try using:
Watson\Sitemap\SitemapServiceProvider::class,
Upvotes: 1