-
-
Notifications
You must be signed in to change notification settings - Fork 21
Usage
Anton Komarev edited this page Sep 9, 2017
·
11 revisions
public function up()
{
Schema::create('posts', function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->boolean('is_published');
$table->timestamps();
});
}
Change is_published
on any other Boolean
flag database column name.
public function up()
{
Schema::create('posts', function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->timestamp('published_at')->nullable();
$table->timestamps();
});
}
Change published_at
on any other Timestamp
flag database column name.