. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; /** * Class MassEditJournalRequest. * * @codeCoverageIgnore */ class MassEditJournalRequest extends Request { /** * Verify the request. * * @return bool */ public function authorize(): bool { // Only allow logged in users return auth()->check(); } /** * Rules for this request. * * @return array */ public function rules(): array { // fixed return [ 'description.*' => 'required|min:1,max:255', 'source_id.*' => 'numeric|belongsToUser:accounts,id', 'destination_id.*' => 'numeric|belongsToUser:accounts,id', 'revenue_account' => 'max:255', 'expense_account' => 'max:255', ]; } }