-
app/Enums/ClauseType.php
Open in GitHubclass ClauseType { public const TRANSACTION = 'transaction'; public const WHERE = 'where'; public const UPDATE = 'update'; }
-
app/Api/V1/Requests/Data/Bulk/TransactionRequest.php
Open in GitHubuse FireflyIII\Enums\ClauseType; use FireflyIII\Rules\IsValidBulkClause; use Illuminate\Foundation\Http\FormRequest; class TransactionRequest extends FormRequest { // public function rules(): array { return [ 'query' => ['required', 'min:1', 'max:255', 'json', new IsValidBulkClause(ClauseType::TRANSACTION)], ]; } // }