1. Home
  2. Laravel
  3. Default value

Set a default value of the record in the Migration class.

#laravel#migration#db
$table->boolean('allowed')->default(0);
 
copy
Full Laravel cheatsheet