How to add a default value on Laravel migration

To putting a default value in single quote look for an example of migration:

$table->increments('id');
            $table->string('project');
            $table->string('website');
            $table->tinyInteger('status')->default('1');
            $table->timestamps();

you can change the datatype and the value for your cases.

Leave a Comment