🎉 feat(seo): add Laravel SEO package and create SEO migration for better site optimization.

This commit is contained in:
fsociety
2024-10-24 19:18:30 +02:00
parent 06c43501a0
commit 05773cb5b3
6 changed files with 313 additions and 5 deletions

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('seo', function (Blueprint $table) {
$table->id();
$table->morphs('model');
$table->longText('description')->nullable();
$table->string('title')->nullable();
$table->string('image')->nullable();
$table->string('author')->nullable();
$table->string('robots')->nullable();
$table->string('canonical_url')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('seo');
}
};