Answers for "how to list all tables in eloquent laravel"

CSS
1

get all tables laravel

$tables = DB::select('SHOW TABLES');
foreach($tables as $table)
{
      echo $table->Tables_in_db_name;
}
Posted by: Guest on June-28-2021
-1

laravel list of tables

DB::select('SHOW TABLES')
Posted by: Guest on October-29-2020

Code answers related to "how to list all tables in eloquent laravel"

Browse Popular Code Answers by Language