Edit File: 2024_09_09_112750_create_pages_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('pages', function (Blueprint $table) { $table->id(); $table->string('logo')->nullable(); $table->string('title', 255)->nullable()->default("Website Streaming Anime Terbaik"); $table->string('name', 100)->nullable()->default("ladevnime"); $table->string('description', 255)->nullable()->default("Ladevnime adalah website streaming anime terbaik dan terupdate"); $table->string('keywords', 255)->nullable()->default("ladevnime, anime, streaming anime, nonton anime"); $table->string('favicon', 255)->nullable()->default('text'); $table->string('canonical', 100)->nullable()->default("http://localhost:8000"); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('pages'); } };
Back