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:
parent
c55852ec12
commit
beb4ddd1e9
6 changed files with 213 additions and 9 deletions
9
backend/config/seed.php
Normal file
9
backend/config/seed.php
Normal 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'),
|
||||
],
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue