SUBD_Transport_Company/database/factories/DeliveryFactory.php

28 lines
840 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Delivery>
*/
class DeliveryFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'address' => fake()->city() . ', ' . fake()->streetName() . ', ' . fake()->numberBetween(1,200),
'receiver' => fake()->name() . ' ' . fake()->lastName() . ' ' . fake()->firstNameMale(),
'sender' => fake()->name() . ' ' . fake()->lastName() . ' ' . fake()->firstNameMale(),
'receiver_phone' => fake()->unique()->phoneNumber(),
'sender_phone' => fake()->unique()->phoneNumber(),
];
}
}