for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrganizersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('organizers', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained();
$table->string('name');
$table->string('surname');
$table->string('email');
$table->text('description')->nullable();
$table->string('website')->nullable();
$table->string('facebook')->nullable();
$table->string('phone')->nullable();
$table->string('profile_picture')->nullable();
$table->string('slug');
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('organizers');