Categories
Uncategorized

Laravel DB Query Log

DB::enableQueryLog();

$user= DB::table('users')->get();

dd(DB::getQueryLog());

Categories
Laravel

Laravel Access Route Parameter from Controller

$request->route('parameter_name')

request()->route('parameter_name');

Get all of them…

$request->route()->paremeters()

Categories
Laravel

Laravel Clear Cache from Console

php artisan cache:clear

php artisan route:clear

php artisan config:clear

php artisan view:clear