Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

print query statement in laravel

DB::enableQueryLog();
$users = User::select("*")->get();
$quries = DB::getQueryLog();
dd($quries);
DB::table('users')->toSql();
dd($query);
 
PREVIOUS NEXT
Tagged: #print #query #statement #laravel
ADD COMMENT
Topic
Name
5+9 =