Implicit fancy 404 json instead of ModelNotFoundException in laravel API
Updated: 23th April 2025Tags: laravel
If you changed supervisor config, or add new program to it, you need to restart it.
sudo supervisorctl stop all
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start "laravel-worker:*"
php artisan about
It will show laravel version with bunch of other usefull information.
Add the whole directory of your app to Windows Defender Exclusions. You can also move your projects in the project directory and add projects to exclusion.
If you want even more speed and have SSD, you can move that project to SSD and then add to Windows Defender exclusions.
DB::enableQueryLog(); // Enable query log
// use orm
dd(DB::getQueryLog()); // Show results of log
Laravel queue job is caching your job php code, so after updating job code you need to:
php artisan queue:restart
$randomRow = DB::table('table')
->inRandomOrder()
->first();
$randomId = DB::table('table')
->inRandomOrder()
->value('id');