🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home2
/
birthday
/
Downloads
/
database
/
migrations
✏️
Editing: 2021_02_27_234032_create_posts.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('posts', function (Blueprint $table) { $table->id(); $table->timestamps(); $table->string('post_type'); $table->string('title')->nullable(); $table->string('subtitle')->nullable(); $table->text('description')->nullable(); $table->string('image')->nullable(); $table->string('link')->nullable(); $table->string('link_name')->nullable(); $table->unsignedBigInteger('vendor_id')->nullable(); $table->foreign('vendor_id')->references('id')->on('companies'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('posts'); } };
💾 Save Changes
❌ Cancel