File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ This package is designed to be used on a fresh Laravel project.
2929- [x] Localize all files
3030- [ ] Use json files instead of split translations
3131- [ ] Add an example CRUD
32- - [ ] Add UserSeeder with a default admin account
32+ - [x ] Add UserSeeder with a default admin account
3333- [ ] Add option to enable/disable locales
3434- [ ] Update web.php with groups
3535- [ ] Include laravel ide helper support
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Database \Seeders ;
4+
5+ // use Illuminate\Database\Console\Seeds\WithoutModelEvents;
6+ use Illuminate \Database \Seeder ;
7+
8+ class DatabaseSeeder extends Seeder
9+ {
10+ /**
11+ * Seed the application's database.
12+ *
13+ * @return void
14+ */
15+ public function run ()
16+ {
17+ // \App\Models\User::factory(10)->create();
18+
19+ \App \Models \User::factory ()->create ([
20+ 'name ' => 'Administrator ' ,
21+ 22+ ]);
23+ }
24+ }
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ public function handle(): int
7676 copy (__DIR__ . '/../../resources/middleware/HandleInertiaRequests.php ' , base_path ('app/Http/Middleware/HandleInertiaRequests.php ' ));
7777 copy (__DIR__ . '/../../routes/web.php ' , base_path ('routes/web.php ' ));
7878 copy (__DIR__ . '/../../app/Http/Middleware/SetLocale.php ' , app_path ('Http/Middleware/SetLocale.php ' ));
79+ copy (__DIR__ . '/../../database/seeders/DatabaseSeeder.php ' , base_path ('database/seeders/DatabaseSeeder.php ' ));
7980
8081 $ this ->installMiddlewareAfter ('SubstituteBindings::class ' , '\App\Http\Middleware\SetLocale::class ' );
8182 $ this ->info ('Your application is ready! ' );
You can’t perform that action at this time.
0 commit comments