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 CreateDonatorsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('donators', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('email')->unique();
$table->string('name')->nullable();
$table->unsignedInteger('phone')->nullable()->comment('Phone using international format (without leading "+" sign)');
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('donators');