2015. március 1., vasárnap

Laravel snippet - get last query

 


Laravel – get last query:


$queries = DB::getQueryLog();

$last_query = end($queries);

var_dump($last_query);



Laravel snippet - get last query