2015. március 2., hétfő

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