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 CreateVenuesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('venues', function (Blueprint $table) {
$table->id();
$table->foreignId('country_id')->constrained();
$table->string('name');
$table->string('slug')->unique();
$table->text('description')->nullable();
$table->string('image')->nullable();
$table->string('website')->nullable();
$table->text('extra_info')->nullable();
$table->string('address')->nullable();
$table->string('city');
$table->string('state_province')->nullable();
$table->string('zip_code')->nullable();
$table->float('lng', 9, 6)->nullable();
$table->float('lat', 8, 6)->nullable();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('venues');