Iasen Iasenoov
Iasen Iasenoov

Reputation: 23

Laravel 5 Sitemap: not found

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

Answers (1)

Jeemusu
Jeemusu

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

Related Questions