In Laravel 4.x, We have a function by which we can run our query the syntax is
Syntax:
DB::getQueryLog()
By using this function We can run our query.
Example
$queries = DB::getQueryLog();
$last_query = end($queries);
We have also profiler package .By using barryvdh/laravel-debugbar package we will also run our query.barryvdh/laravel-debugbar package is very easy to install and run.
0 Comment(s)