How can I define property zerofill and size (2) on field schema migration with Laravel?
Schema::create('books', function (Blueprint $table) {
$table->integer('reference')->length(2);
});
and this field with zerofill.
I would like use my seeder:
public function run()
{
Book::create
([
'reference' => 01
]);
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…