Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

How to Log Query in Laravel

DB::enableQueryLog();
$user = DB::table('users')->select('name', 'email as user_email')->get();
dd(DB::getQueryLog());
Source by artisansweb.net #
 
PREVIOUS NEXT
Tagged: #How #Log #Query #Laravel
ADD COMMENT
Topic
Name
2+6 =