2024-06-10 16:47:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Seeders\Development;
|
|
|
|
|
|
|
|
|
|
use App\Lib\Helpers\FileStorageHelper;
|
|
|
|
|
use App\Models\Claim;
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
|
|
class ClaimSeeder extends Seeder
|
|
|
|
|
{
|
2024-06-27 14:10:09 +02:00
|
|
|
/**
|
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $model = Claim::class;
|
|
|
|
|
|
2024-06-10 16:47:07 +02:00
|
|
|
/**
|
|
|
|
|
* Run the database seeds.
|
|
|
|
|
*/
|
|
|
|
|
public function run(): void
|
|
|
|
|
{
|
|
|
|
|
FileStorageHelper::removeModelFiles(new Claim());
|
2024-06-27 14:10:09 +02:00
|
|
|
Claim::factory(5)->createQuietly();
|
2024-06-10 16:47:07 +02:00
|
|
|
}
|
|
|
|
|
}
|