I am trying to get all table names in db, It is working fine but just want to exclude or ignore migrations, user, password_resets and any other default table names. I know it can be done by filtering array, but it's better if there is any eloquent function for this situation.
$tables = DB::select('SHOW TABLES');
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2XcApW1
via IFTTT
Aucun commentaire:
Enregistrer un commentaire