Posted by Arjun Arjun on Sunday 26th July 2015, 1 minute read

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 am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.