How to check whether the table exists in the database or not?

Forums LaravelHow to check whether the table exists in the database or not?
Staff asked 2 years ago

Answers (1)

Add Answer
Staff answered 2 years ago

If you can used Laravel 4 & 5 then there is hasTable() method. so, you can check whether

Schema::hasTable('yourTableName');

 

Subscribe

Select Categories