Jak zkontrolovat sloupci tabulky v výmluvné laravel
Příklady kódu
0
0
laravel zkontrolujte, zda tabulka má sloupec
if (Schema::hasTable('users')) {
// The "users" table exists...
}
if (Schema::hasColumn('users', 'email')) {
// The "users" table exists and has an "email" column...
}