check table exists in db laravel

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

Also in PHP: