samedi 28 avril 2018

Laravel migration cancel column as nullable

I created a migration with user_id column making nullable. How can I change user_id as not nullable? My previous migration code is given below:

Schema::table('users', function($table)
{
    $table->string('name', 50)->nullable();
});



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire