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