Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add new column in laravel migration

Schema::table('table_name', function (Blueprint $table) {
            $table->string('column_name', 255)->nullable()->after('previous_column_name');
        });
Source by www.edureka.co #
 
PREVIOUS NEXT
Tagged: #add #column #laravel #migration
ADD COMMENT
Topic
Name
7+8 =