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 CreateLocalesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('locales', function (Blueprint $table) {
$table->increments('id');
$table->string('iso')->unique();
$table->string('label');
$table->unsignedInteger('fallback_id')->nullable()->index();
$table->boolean('available_in_api')->default(true);
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('locales');