Have you upgraded the composer package ?
Php Artisan doesn't work after installing Laravel/sanctum
Artisan doesn't work after installing Laravel/sanctum. I have already tried composer: dump-autoload, composer install --no-script and composer update. But i still get the following error message:
PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Application" not found in C:\xampp\htdocs\api\bootstrap\app.php:7 Stack trace: #0 C:\xampp\htdocs\api\artisan(14): require_once() #1 {main} thrown in C:\xampp\htdocs\api\bootstrap\app.php on line 7
When i use the command: php artisan
@Fahim1990 You don't add deleted files to the vendor directory manually. That directory holds all 3rd party dependencies that are installed, based on your composer.json file, when you run composer update. What does your composer.json look like?
But why is your composer.json loaded from the path C:\composer\composer.json? That looks really strange. Is your project in the path C:\composer\?
Please or to participate in this conversation.