Laravel clear queue job code cache
Updated: 12th April 2021Tags: php laravel
Laravel queue job is caching your job php code, so after updating job code you need to:
php artisan queue:restart
Laravel queue job is caching your job php code, so after updating job code you need to:
php artisan queue:restart
PHP server in current directory
php -S localhost:8000
PHP server in public directory
php -S localhost:8000 -t public
$randomRow = DB::table('table')
->inRandomOrder()
->first();
$randomId = DB::table('table')
->inRandomOrder()
->value('id');
After installing laravel you MUST change some folder permissions.
sudo chmod 755 -R laravel_app
sudo chmod -R o+w laravel_app/storage
sudo chmod -R o+w laravel_app/bootstrap/cache