This is useful for migrations when you can’t rollback. It can easily be run in artisan mode or you can create a console command.
You can use laravel’s artisan command to check currently installed version of Laravel Framework Version of Laravel Issue below command from your terminal, make sure to be in application root while issuing command.
You can use getQueryLog() method 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 need to call DB::connection()->enableQueryLog();
Here is the simple code snippet to get all the tables under the database in laravel framework.