How to Log Query in Laravel
snippet in php

How to Log Query in Laravel

user8210

DB::enableQueryLog();
$arr_user = DB::table('users')->select('name', 'email as user_email')->get();
dd(DB::getQueryLog());

How to Log Query in Laravel

user7389

DB::enableQueryLog();
$user = DB::table('users')->select('name', 'email as user_email')->get();
dd(DB::getQueryLog());

login with laravel

user9703

html { height: 100%; }
body {
    min-height:100%; 
    position:relative; 
    padding-bottom:[footer-height] 
}
.footer { 
    position: absolute; 
    left: 0 ; right: 0; bottom: 0; 
    height:[footer-height] 
}

db enable query log

user4301

DB::enableQueryLog();

dd(DB::getQueryLog());