Full Stack LAMP - MEAN Developer, Python developer. Certified Azure Developer. Freelance programmer/consultant/trainer.

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');
dd($tables);

Leave a Reply