Getting all tables inside a database using Laravel

Here is the simple code snippet to get all the tables under the database in laravel framework.

$tables = DB::select('SHOW TABLES');

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems. Protection Status