Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel change column type

php artisan make:migration change_sometable_in_finance_table --table=finance

public function up()
{
    Schema::table('sometable', function (Blueprint $table) {
        $table->text('text')->change();
    });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #change #column #type
ADD COMMENT
Topic
Name
5+7 =