drop if exists table and recreate laravel code example
Example: check table exists in db laravel
if (!Schema::hasTable('table_name')) {
// Code to create table
}
if (!Schema::hasTable('table_name')) {
// Code to create table
}