Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add new column in existing table in laravel migration

public function up()
{
    Schema::table('users', function($table) {
        $table->integer('paid');
    });
}
Source by www.edureka.co #
 
PREVIOUS NEXT
Tagged: #add #column #existing #table #laravel #migration
ADD COMMENT
Topic
Name
3+6 =