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
+9 -1
View File
@@ -4,14 +4,22 @@ namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Company;
class CompanySeeder extends Seeder
{
protected $test_company = [
'uuid' => 'b7301b09-fc0c-4d0d-a556-ed70fc8e40f7',
'name' => 'testCompany',
'image' => null,
'description' => 'Pellentesque tristique imperdiet tortor.'
];
/**
* Run the database seeds.
*/
public function run(): void
{
//
Company::factory()->create($this->test_company);
}
}