Initial commit
This commit is contained in:
27
database/factories/LogFactory.php
Normal file
27
database/factories/LogFactory.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Log;
|
||||
use App\Models\Round;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Log>
|
||||
*/
|
||||
class LogFactory extends Factory
|
||||
{
|
||||
protected $model = Log::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'round_id' => Round::factory(),
|
||||
'pcall' => strtoupper($this->faker->bothify('OK#???')),
|
||||
'pwwlo' => $this->faker->randomElement(['JN79', 'JN89', 'JO60', 'JN99']),
|
||||
'psect' => $this->faker->randomElement(['A', 'B', 'C', 'D']),
|
||||
'pband' => $this->faker->randomElement(['144', '432', '1296']),
|
||||
'power_watt' => $this->faker->numberBetween(10, 1000),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user