You've already forked Atomcms-edit
574b5d6e17
feat: add 24 model factories for Help, Shop, Community, Game, User domains - Translate mixed Dutch/English strings in README.md and AlertSettings.php - Add HasFactory trait to 23 models - Create factories for Help (6), Shop (4), Community (5), Game (2), User (7)
25 lines
791 B
PHP
Executable File
25 lines
791 B
PHP
Executable File
<?php
|
|
|
|
namespace Database\Factories\Community\RareValue;
|
|
|
|
use App\Models\Community\RareValue\WebsiteRareValue;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class WebsiteRareValueFactory extends Factory
|
|
{
|
|
protected $model = WebsiteRareValue::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'category_id' => WebsiteRareValueCategoryFactory::new(),
|
|
'item_id' => $this->faker->numberBetween(1, 10000),
|
|
'name' => $this->faker->unique()->word(),
|
|
'credit_value' => (string) $this->faker->numberBetween(1, 1000),
|
|
'currency_value' => (string) $this->faker->numberBetween(1, 100),
|
|
'currency_type' => 'diamonds',
|
|
'furniture_icon' => $this->faker->word() . '.png',
|
|
];
|
|
}
|
|
}
|