Check Last Executed Queries in Laravel5

Check Last Executed Queries in Laravel5

In this PHP tutorial, we will see How to Check Last Executed Queries in Laravel5.You can use the methodgetQueryLog() to get most recently executed queries. But in Laravel 5.1 it is disabled by default. So you have to enable it first.To enable you to need to call DB::connection()->enableQueryLog();

Conclusion:

So that’s it how we can Check Last Executed Queries in Laravel5.I hope you learned in this tutorial Check Executed Queries in Laravel5.If you like this tutorial script then share it with your community. If you have any suggestion Feel free to comment below.If you want to learn more about PHP, CodeIgniter, AngularJSLaraveljQuery then daily visit PHPCodify.Sharing is Caring.

Read previous post:
Check Current Installed Version of Laravel

Check Current Installed Version of Laravel In this Laravel tutorial, we will see How to Check Current Installed Version of Laravel....

Close