Implement dark mode, bug report page, and schema dump

This commit is contained in:
2025-11-27 15:06:45 +08:00
parent 13bc6db529
commit 83602b1ed1
91 changed files with 1078 additions and 2291 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Database\Factories;
use App\Models\Member;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class MemberFactory extends Factory
{
protected $model = Member::class;
public function definition(): array
{
return [
'user_id' => User::factory(),
'full_name' => $this->faker->name(),
'email' => $this->faker->unique()->safeEmail(),
'phone' => $this->faker->numerify('09########'),
'membership_status' => Member::STATUS_PENDING,
'membership_type' => Member::TYPE_REGULAR,
'membership_started_at' => now()->subMonth(),
'membership_expires_at' => now()->addYear(),
];
}
public function active(): static
{
return $this->state(fn () => [
'membership_status' => Member::STATUS_ACTIVE,
]);
}
}