Überprüfen Sie die Tabelle in DB Laravel
if (!Schema::hasTable('table_name')) {
// Code to create table
}
Anxious Anteater
if (!Schema::hasTable('table_name')) {
// Code to create table
}
if (Schema::hasTable('users')) {
// The "users" table exists...
}
if (Schema::hasColumn('users', 'email')) {
// The "users" table exists and has an "email" column...
}
FOR LUMEN FOR migrate job
BOOTSTRAP/APP.PHP
if(\Illuminate\Support\Facades\Schema::hasTable("jobs"))
Queue::push(new ProcessCenterJob());