when I used composer remove it but it error!
vagrant@homestead:~/Code/Awbeci3.2$ composer remove tymon/jwt-auth
Dependency "laravel/framework" is also a root requirement, but is not explicitly whitelisted. Ignoring.
Dependency "laravel/framework" is also a root requirement, but is not explicitly whitelisted. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 4 removals
- Removing tymon/jwt-auth (0.5.12)
The package has modified files:
M src/Commands/JWTGenerateCommand.php
Discard changes [y,n,v,d,?]? y
- Removing namshi/jose (7.2.3)
- Removing symfony/polyfill-php56 (v1.5.0)
- Removing symfony/polyfill-util (v1.5.0)
- Updating symfony/translation (v3.3.9 => v3.3.10): Downloading (100%)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider' not found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
Removal failed, reverting ./composer.json to its original content.
Try and remove the reference to
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class
in the providers array in app.php. Then clear config php artisan config:clear and then run composer remove tymon/jwt-auth and it should work.
ok,thanks a lot
delete vendor folder
then inastall composer again
Try and remove the reference to
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::classin the
providersarray in app.php. Then clear configphp artisan config:clearand then runcomposer remove tymon/jwt-authand it should work.
it works for me but not just deleting jwt provider as mentioned but also u have to delete it's aliases
Most helpful comment
delete vendor folder
then inastall composer again