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 CreateTestimonialsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('testimonials', function (Blueprint $table) {
$table->id();
$table->foreignId('country_id')->constrained();
$table->string('name');
$table->string('surname');
$table->string('profession')->nullable();
$table->text('feedback_short')->nullable();
$table->text('feedback');
$table->string('photo')->nullable();
$table->boolean('personal_data_agreement');
$table->boolean('publish_agreement');
$table->string('slug');
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('testimonials');