PHP server cmd command
Updated: 6th February 2020Tags: php
PHP server in current directory
php -S localhost:8000
PHP server in public directory
php -S localhost:8000 -t public
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