I'm converting some project from pure PHP to Laravel 5.1, and I have a problem with converting this query
\DB::select( "SELECT TABLE_NAME as nombre, FORMAT(TABLE_ROWS, 0) as cantidad FROM information_schema.tables WHERE table_type = 'BASE TABLE' AND table_schema = '".env('DB_DATABASE')."' " );
to Eloquent ORM. Can you help me?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire