split seeders by domain entity

Replaces the laravel-default scaffold seeder with one file per
domain (AdminUser, User, Post, Comment) plus a config/seed.php
to source admin credentials from env. DatabaseSeeder is now a
pure orchestrator that calls the sub-seeders in dependency
order.
This commit is contained in:
Yisroel Baum 2026-05-06 22:38:14 +03:00
parent c55852ec12
commit beb4ddd1e9
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
6 changed files with 213 additions and 9 deletions

9
backend/config/seed.php Normal file
View file

@ -0,0 +1,9 @@
<?php
return [
'admin' => [
'email' => env('ADMIN_EMAIL', 'admin@tide.test'),
'display_name' => env('ADMIN_DISPLAY_NAME', 'admin'),
'password' => env('ADMIN_PASSWORD', 'changemenow'),
],
];