File: D:/HostingSpaces/stafa/stafa.nl/database/migrations/2019_10_02_160912_create_events_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEventsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('events', function (Blueprint $table) {
$table->increments('id');
$table->boolean('active');
$table->timestamp('date')->nullable();
$table->timestamp('end_date')->nullable();
$table->timestamps();
$table->string('link');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('events');
}
}