integer nullable laravel
snippet in php

integer nullable laravel

user4813

$table->integer('banner_id')->nullable()->unsigned();

alter row in table laravel

user1154

$flight = App\Flight::find(1);

$flight->name = 'New Flight Name';

$flight->save();