OwlCyberSecurity - MANAGER
Edit File: 2023_08_09_154114_create_blogs_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('blogs', function (Blueprint $table) { $table->id(); $table->integer('category_id'); $table->longText('title')->nullable(); $table->longText('content')->nullable(); $table->longText('short_description')->nullable(); $table->longText('meta_title')->nullable(); $table->longText('meta_description')->nullable(); $table->longText('meta_keywords')->nullable(); $table->tinyInteger('is_featured'); $table->tinyInteger('show_in_slider'); $table->tinyInteger('show_in_sidebar'); $table->text('external_link')->nullable(); $table->tinyInteger('link_target'); $table->text('header_image')->nullable(); $table->text('slider_image')->nullable(); $table->tinyInteger('status'); $table->timestamps(); $table->timestamp('deleted_at')->nullable(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('blogs'); } };