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