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