Published
- 1 min read
get all tables laravel
The solution for this is noted below
get all tables laravel
Solution
$tables = DB::select('SHOW TABLES');
foreach($tables as $table)
{
echo $table->Tables_in_db_name;
}
Try other methods by searching on the site. That is if this doesn’t work