refactor: kb & station & terminal
This commit is contained in:
22
database/factories/StationFactory.php
Normal file
22
database/factories/StationFactory.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user