Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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.
}
Comment

PREVIOUS NEXT
Code Example
Php :: to list all relations of model laravel 
Php :: bootstrap autocomplete example laravel 
Php :: laravel compare request domain and app domain and request original domain 
Php :: limit wordpress search to title 
Php :: PHP - AJAX and MySQL 
Php :: laravel @class 
Php :: Before Action methoond in Yii 1 controller 
Php :: distinct in laravel 8 
Php :: add class to row laravel 
Php :: log php 
Php :: how to redirect in php use variable from another file 
Php :: laravel return from db reorder 
Php :: @admin @endadmin 
Php :: php obfuscate email 
Php :: php mysqli date between 
Php :: php function return multiple values 
Php :: php preg match 
Php :: php 7 The each() function is deprecated. 
Php :: laravel collection pop 
Php :: how to make trait in laravel 
Php :: get object value by key php 
Php :: laravel guard 
Php :: laravel search function 
Php :: havingraw in laravel 
Php :: validate number should by 12 digit in php 
Php :: Laravel unique cheque using multiple column 
Php :: php response image 
Php :: cases_sensitive 
Php :: nested loop in php 
Php :: how to delete a row in phpmyadmin 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =