migrations required laravel code example Example: migrations required field laravel $table->string('foo')->nullable(false)->change();