Find and fix the actual setup error
Use the log and the failing command to locate a setup problem.
What it is
Use the log and the failing command to locate a setup problem.
When to use it
Use while assembling or adapting the brokerage practice app.
Syntax
php artisan config:clear
php artisan route:list
tail -60 storage/logs/laravel.log
composer check-platform-reqsExample
could not find driver -> install PHP SQLite extension for the CLI PHP version
419 -> use same host/port, CSRF meta token and X-CSRF-TOKEN
Target class does not exist -> check case-sensitive path and namespace; composer dump-autoload
valid cache path -> mkdir -p storage/framework/{cache/data,sessions,views} bootstrap/cache
Address already in use -> php artisan serve --port=8010
Vite manifest missing -> use the supplied plain Blade view; no @vite
.env change ignored -> php artisan config:clear
SQLSTATE no such table -> php artisan migrate
Composer PHP requirement -> use supplied framework/PHP or request matching packagesCommon mistakes
Do not use chmod 777, --ignore-platform-reqs, or disable advisory checks. Run Composer as your own user. An apt default PHP may be too old; check php -v. Do not run migrate:fresh on a database containing work.