Is there any way to set a maximum value as a default one for an integer field? In other words, I'm looking for a simple and elegant way to replace the hardcoded 999
value from the code below.
Schema::create('files', function(Blueprint $table)
{
// . . .
$table->integer('display_order')->default(999); <-- MAX_VALUE instead of 999
// . . .
});
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire