LaravelTest
23 строки · 456.0 Байт
1<?php
2
3namespace Database\Seeders;
4
5use App\Models\User;
6// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
7use Illuminate\Database\Seeder;
8
9class DatabaseSeeder extends Seeder
10{
11/**
12* Seed the application's database.
13*/
14public function run(): void
15{
16// User::factory(10)->create();
17
18User::factory()->create([
19'name' => 'Test User',
20'email' => 'test@example.com',
21]);
22}
23}
24