Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel enable query log


use IlluminateSupportFacadesDB;
...
...
 
public function UserController()
{
    DB::enableQueryLog();
    $arr_user = DB::table('users')->select('name', 'email as user_email')->get();
    dd(DB::getQueryLog());
}
Source by artisansweb.net #
 
PREVIOUS NEXT
Tagged: #laravel #enable #query #log
ADD COMMENT
Topic
Name
1+8 =