Ryan H
Ryan H

Reputation: 2973

Laravel unstaliling tymon/jwt-auth package throws class LaravelServiceProvider not found

I'm trying to uninstall jwt-auth from my Laravel 8 application. I've removed all references to Tymon\JWTAuth, have done a composer clear-cache, my config no longer exists, it's been removed from the app config, but still, laravel throws the error, what am I missing:

In ProviderRepository.php line 208:
                                                                    
  Class 'Tymon\JWTAuth\Providers\LaravelServiceProvider' not found  

Upvotes: 0

Views: 949

Answers (1)

Akhzar Javed
Akhzar Javed

Reputation: 626

Check your config/app.php file you must have used Tymon\JWTAuth\Providers\LaravelServiceProvider in providers array

'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
       ...
       Tymon\JWTAuth\Providers\LaravelServiceProvider::class
       ...
]

Upvotes: -1

Related Questions