Add Advanced Search and filtering to Posts

- Add full-text search index on posts.title and posts.body
- Add search box with live filtering
- Add filter dropdowns for type, status, and site
- Add Clear Filters button
- Display post count in filter bar
- All filters work together (AND logic)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
m105
2026-07-27 21:45:17 +03:00
parent 90f313c134
commit f3c7f1d9ca
3 changed files with 114 additions and 1 deletions
@@ -0,0 +1,22 @@
<?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::table('posts', function (Blueprint $table) {
$table->fullText(['title', 'body']);
});
}
public function down(): void
{
Schema::table('posts', function (Blueprint $table) {
$table->dropFullText(['title', 'body']);
});
}
};