remove compose file to another repo

This commit is contained in:
2025-05-05 15:30:11 +03:30
parent 02ef3ae2ad
commit 3b739558ee
179 changed files with 130 additions and 341 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Database\Factories;
use App\Models\Call;
use App\Models\Event;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\CallHistory>
*/
class CallHistoryFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'call_id' => Call::factory(),
'telephone_id' => $this->faker->numerify('tel-####'),
'caller_phone_number' => '09' . $this->faker->randomNumber(9, true),
'event_id' => Event::factory(),
'event_name' => function (array $attributes) {
return Event::query()->find($attributes['event_id'])->name;
}
];
}
}