rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

Class 'Conner\Tagging\Providers\TaggingServiceProvider' not found #116

Closed chebaby closed 8 years ago

chebaby commented 8 years ago

thank you for this amazing package, it saved me a lot of time.

FatalErrorException in ProviderRepository.php line 146:
Class 'Conner\Tagging\Providers\TaggingServiceProvider' not found

i don't what could be the reason for that, it's working fine on localhost, but in the server it's generating this error

i'm using laravel 5.1

any suggestions?!

luqmanrom commented 8 years ago

You need to include the namespace. What happened is, it tried to find the class on the namespace you are currently in, but obviously cannot find it.

Do this at the top of the file:

use Conner\Tagging\Providers\TaggingServiceProvider;