Answers for "how can i get table row list in 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
0

laravel list all tbales

use IlluminateSupportFacadesDB;

$tables = DB::select('SHOW TABLES');
foreach($tables as $table)
{
    echo $table->Tables_in_db_name;
  	//You'll have to change the db_name to the name of your database.
}
Posted by: Guest on March-22-2021

Code answers related to "how can i get table row list in laravel"

Browse Popular Code Answers by Language