. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; use FireflyIII\Support\Request\ChecksLogin; use Illuminate\Foundation\Http\FormRequest; /** * Class MassEditJournalRequest. * * @codeCoverageIgnore */ class MassEditJournalRequest extends FormRequest { use ChecksLogin; /** * 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', 'journals.*' => 'numeric|belongsToUser:transaction_journals,id', 'revenue_account' => 'max:255', 'expense_account' => 'max:255', ]; } }