Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how we generate a single column migration in laravel

if (Schema::hasTable('users')) {
    //
}
 
if (Schema::hasColumn('users', 'email')) {
    //
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #generate #single #column #migration #laravel
ADD COMMENT
Topic
Name
9+7 =