Answers for "check a field exist or not laravel table"

PHP
0

laravel check if table has column

if (Schema::hasTable('users')) {
    // The "users" table exists...
}

if (Schema::hasColumn('users', 'email')) {
    // The "users" table exists and has an "email" column...
}
Posted by: Guest on January-18-2021

Code answers related to "check a field exist or not laravel table"

Browse Popular Code Answers by Language