Method \App\Http\Requests\StoreRatingGuideAnswer::authorize() does not have return type hint for its return value but it should be possible to add it based on @return annotation "bool".
Loading history...
19
{
20
// Ensure the user can make answers, and is the owner of the question it answers.
21
if ($this->user()->can('create', RatingGuideAnswer::class)) {
Method \App\Http\Requests\StoreRatingGuideAnswer::rules() does not have return type hint for its return value but it should be possible to add it based on @return annotation "array".
Loading history...
37
{
38
return [
39
'rating_guide_question_id' => ['required', new ValidIdRule(RatingGuideQuestion::class)],
40
'criterion_id' => ['nullable', new ValidIdRule(Criteria::class)],