mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-07 06:33:57 -06:00
26 lines
584 B
PHP
26 lines
584 B
PHP
<?php
|
|
use Carbon\Carbon;
|
|
use League\FactoryMuffin\Facade;
|
|
|
|
Facade::define(
|
|
'Limit',
|
|
[
|
|
|
|
'component_id' => 'factory|Budget',
|
|
'startdate' => function () {
|
|
$start = new Carbon;
|
|
$start->startOfMonth();
|
|
|
|
return $start;
|
|
},
|
|
'amount' => 100,
|
|
'repeats' => 'boolean',
|
|
'repeat_freq' => function () {
|
|
$frequencies = ['daily', 'weekly', 'monthly', 'quarterly', 'half-year', 'yearly'];
|
|
|
|
return $frequencies[rand(0, 5)];
|
|
}
|
|
|
|
|
|
]
|
|
); |