Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Get the query executed in Laravel 4.x

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 104
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: