check table exists in db laravel
snippet in php

check table exists in db laravel

user4205

if (!Schema::hasTable('table_name')) {
    // Code to create table
}