Jwt-auth: how to remove jwt-auth?

Created on 8 Oct 2017  路  4Comments  路  Source: tymondesigns/jwt-auth

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.

Most helpful comment

delete vendor folder
then inastall composer again

All 4 comments

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::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.

it works for me but not just deleting jwt provider as mentioned but also u have to delete it's aliases

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loic-lopez picture loic-lopez  路  3Comments

lloy0076 picture lloy0076  路  3Comments

gandra picture gandra  路  3Comments

mihailo-misic picture mihailo-misic  路  3Comments

hfalucas picture hfalucas  路  3Comments