File: /home/jubaroyal/public_html/database/migrations/2023_04_10_153536_create_slides_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('slides', function (Blueprint $table) {
$table->id();
$table->string('date')->nullable();
$table->text('title')->nullable();
$table->text('title_status')->nullable();
$table->text('subtitle')->nullable();
$table->text('subtitle_status')->nullable();
$table->text('description')->nullable();
$table->text('description_status')->nullable();
$table->text('first_link')->nullable();
$table->text('first_link_title')->nullable();
$table->text('first_link_status')->nullable();
$table->text('second_link')->nullable();
$table->text('second_link_title')->nullable();
$table->text('second_link_status')->nullable();
$table->string('photo')->nullable();
$table->string('status')->default('Unpublished');
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('slides');
}
};