add filament and admin user
Some checks failed
Build / build (push) Failing after 51s

This commit is contained in:
Ivo Spijkerman
2025-08-31 21:12:03 +02:00
parent f4e613893a
commit 069b57c7b3
7 changed files with 112 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
<?php
use App\Models\User;
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
{
User::factory()->create([
'name' => 'admin',
'email' => config('admin.email'),
'password' => Hash::make(config('admin.password')),
]);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
User::where('name', '=', 'admin')->delete();
}
};