rewardValidation = $rewardValidation; } /** * @return bool */ protected function authorized($object): bool { if (!Auth::user()->can('add reward')) { return false; } return true; } /** * @param RewardObject $object * @return bool * @throws \App\Classes\Exceptions\RequestValidationException */ protected function validators($object): bool { return true; // $this->rewardValidation->validate($object, 'POST'); } /** * @param RewardObject $object * @return bool */ protected function criteria($object): bool { return true; } }