user()->can('update', $this->route('movieList')); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'name' => 'required|string|max:255', 'is_public' => 'boolean', 'movies' => 'array', 'slug' => 'string', ]; } }