Open yelnyafacee opened 7 years ago
I tried to upgrade from "0.5.*"
to dev-develop
, and then composer update
the composer.json
,
then everything turn to shit
this:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider' not found
wont go away, cant uninstall or remove it, because of this
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider' not found
Script php artisan optimize handling the post-update-cmd event returned with error code 1`
here is the post-update-cmd
` "post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan optimize"
]
I have a backup using o.5.*
, and when I do composer remove
I still get:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider' not found
this is my composer.json:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"barryvdh/laravel-ide-helper": "^2.3",
"dimsav/laravel-translatable": "6.*",
"doctrine/dbal": "~2.3",
"guzzlehttp/guzzle": "^6.2",
"infyomlabs/adminlte-templates": "5.3.x-dev",
"infyomlabs/laravel-generator": "5.3.x-dev",
"infyomlabs/swagger-generator": "dev-master",
"intervention/image": "^2.3",
"jlapp/swaggervel": "dev-master",
"laravel/framework": "5.3.*",
"laravel/passport": "~1.0",
"laravelcollective/html": "^5.3.0",
"mcamara/laravel-localization": " 1.2.*",
"spatie/laravel-permission": "^1.12",
"yajra/laravel-datatables-oracle": "6.x",
"tymon/jwt-auth": "0.5.*"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true
}
}
Maybe you forgot to remove the providers/aliases from your config\app.php
I fixed it with manually deleting the cached config file in the folder, seems no other way can fix this
@yelnyaface 's suggestion of manually killing bootsramp/cache/config.php
did it for me too
php artisan cache:clear, composer dump-autoload, composer update ..
[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider' not found
FatalThrowableError in ProviderRepository.php line 146: Class 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider' not found