File: /home/jubaroyal/public_html/database/migrations/2023_04_17_172330_create_testimonials_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('testimonials', function (Blueprint $table) {
$table->id();
$table->text('date')->nullable();
$table->text('name')->nullable();
$table->text('title')->nullable();
$table->text('company_name')->nullable();
$table->text('description')->nullable();
$table->text('photo')->nullable();
$table->text('background_photo')->nullable();
$table->string('status')->default('Inactive');
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('testimonials');
}
};