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
// . . .
});
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2a7H4ZG
via IFTTT
Aucun commentaire:
Enregistrer un commentaire