Update database column in Laravel 5

by Pete Houston


Unlike previous version, from Laravel 5, you are free to update a column. The old method is to create a raw SQL and execute, and better way in L5, is to use the change() method.

In case you miss it,

$table->integer(‘age’)->nullable()->change();

Pretty much easy sugar ☺

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.