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 these are the Check Last 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 PHPCodeIgniterAngularJSLaraveljQuery  Web Development then daily visit PHPCodify. Sharing is Caring.

Check Last Executed Queries in Laravel5

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