nono.ma

Check If A Database Table Exists With Laravel

To make sure your Laravel application doesn't break when you are applying changes to your database, it's a good practice to check wether a table exists or not before doing any calls.

\Schema::hasTable('users');

September 16, 2017

CodeLaravel