Answers for "laravel database table function all"

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
0

call table name in model laravel

protected $table = 'table_name';
Posted by: Guest on October-24-2021

Code answers related to "laravel database table function all"

Browse Popular Code Answers by Language