Add Destination resource (T2.2)

Migration/model/factory for destinations (name, mm_name, region,
description fields, geo coordinates, is_active, popular) plus its
Filament resource.
This commit is contained in:
Nyan Lin Paing
2026-08-05 22:45:56 +07:00
parent 6039d25c6d
commit bf5d2c676a
10 changed files with 366 additions and 0 deletions
@@ -0,0 +1,38 @@
<?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('destinations', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('mm_name');
$table->string('region')->nullable();
$table->text('description')->nullable();
$table->text('mm_description')->nullable();
$table->text('meta_keyword')->nullable();
$table->text('meta_description')->nullable();
$table->string('latitude')->nullable();
$table->string('longitude')->nullable();
$table->boolean('is_active')->default(true);
$table->boolean('popular')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('destinations');
}
};