ledgerrz/database/factories/LedgerFactory.php
Daan Meijer 10bd46a53e
Some checks failed
linter / quality (push) Failing after 1m2s
tests / ci (8.3) (push) Failing after 48s
tests / ci (8.4) (push) Failing after 1m5s
tests / ci (8.5) (push) Failing after 1m5s
formatting, juiste use voor UpdateDynamicRequest
2026-06-22 00:10:39 +02:00

37 lines
877 B
PHP

<?php
namespace Database\Factories;
use App\Models\Dynamic;
use App\Models\Ledger;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Ledger>
*/
class LedgerFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'dynamic_id' => Dynamic::factory(),
'name' => $this->faker->randomElement([
'Curfew Compliance',
'Worship & Praise',
'Dungeon Cleaning',
'Silence Protocol',
'Task Completion',
'Tribute Points',
]),
'rules' => 'Scores are added by Doms and subtracted for protocol breaches.',
'score' => 0,
'alignment' => 'neutral',
];
}
}