24 lines
592 B
PHP
24 lines
592 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\PowerCategory;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\PowerCategory>
|
|
*/
|
|
class PowerCategoryFactory extends Factory
|
|
{
|
|
protected $model = PowerCategory::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => strtoupper($this->faker->unique()->bothify('PWR-?')),
|
|
'order' => $this->faker->numberBetween(1, 10),
|
|
'power_level' => $this->faker->numberBetween(10, 1000),
|
|
];
|
|
}
|
|
}
|