23 lines
510 B
PHP
23 lines
510 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Station;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Station>
|
|
*/
|
|
class StationFactory extends Factory
|
|
{
|
|
protected $model = Station::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => 'BL' . fake()->unique()->numerify('##') . fake()->randomElement(['U', 'B', 'W', 'HB']),
|
|
'description' => null,
|
|
];
|
|
}
|
|
}
|