jeudi 3 septembre 2020

How to check table names in different databases in laravel

I have two databases . one for project and one for telescope. I want to check the tables name in each database how i can to this?

if i have one database i can do this

$tables = DB::connection()->getDoctrineSchemaManager()->listTableNames()

but Dont know what to do for multiple databases



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire