Apr 14, 2021
10
Level 1
Target class auth does not exist in Container.php
Happens when running composer. I am upgrading from Laravel 7 to Laravel 8 and this is the offending composer.json file:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.3",
"ext-zip": "*",
"bensampo/laravel-enum": "^3.3",
"brick/money": "~0.5.0",
"doctrine/dbal": "^2.9",
"fideloper/proxy": "^4.2",
"firebase/php-jwt": "^5.2",
"fruitcake/laravel-cors": "^2.0",
"fzaninotto/faker": "^1.9.1",
"guzzlehttp/guzzle": "^7.0.1",
"illuminate/support": "^8.37",
"jenssegers/agent": "^2.6",
"kreait/laravel-firebase": "^3.0",
"laravel/framework": "^8.0",
"laravel/socialite": "^5.2",
"laravel/telescope": "^4.4",
"laravel/tinker": "^2.0",
"laravel/ui": "^3.2",
"league/flysystem-cached-adapter": "^1.1",
"league/flysystem-sftp": "^1.0",
"maatwebsite/excel": "^3.1",
"mpdf/mpdf": "^8.0",
"myriad/event-driven-service": "3.4.2",
"myriad/notify-client-php": "^1.0",
"myriad/squire-client": "^3.1.1",
"org_heigl/ghostscript": "^2.3",
"plivo/php-sdk": "^4.18",
"rollbar/rollbar": "^1.3",
"rossjcooper/laravel-hubspot": "^4.0",
"socialiteproviders/microsoft-azure": "^3.0",
"tymon/jwt-auth": "^1.0",
"vanderlee/php-stable-sort-functions": "^2.0",
"vyuldashev/laravel-openapi": "^0.24.1",
"web-token/jwt-checker": "^2.2",
"web-token/jwt-key-mgmt": "^2.2",
"web-token/jwt-signature": "^2.2",
"web-token/jwt-signature-algorithm-ecdsa": "^2.2"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^2.4",
"ddelnano/dredd-hooks-php": "^1.1",
"facade/ignition": "^2.3.6",
"filp/whoops": "~2.0",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.0"
},
"autoload": {
"files": [
"bootstrap/helpers.php"
],
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\": "app/",
"Database\UberFactories\": "database/uber-factories",
"Database\Helpers\": "database/helpers"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
"laravel/telescope"
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"repositories": [
{
"type": "composer",
"url": "https://satis.myriadmobile.com"
}
],
"minimum-stability": "dev",
"prefer-stable": true
}
The actual error is:
In Container.php line 835:
Target class [auth] does not exist.
In Container.php line 833:
Class auth does not exist
Any help in resolving this issue will be greatly appreciated.
Please or to participate in this conversation.