Add test models to the seeders.
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-06-18 11:26:01 +03:00
parent 0430a2bed1
commit d4f3072169
6 changed files with 109 additions and 3 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\User;
class UserSeeder extends Seeder
{
protected $test_user = [
'username' => 'Test',
'matrix_username' => '@test:test.com',
'phone' => '380661234567'
];
/**
* Run the database seeds.
*/
public function run(): void
{
User::factory()->create($this->test_user);
}
}