user()->can('edit', $this->subscription); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $rules = [ // ]; return $this->globalRules($rules); } protected function prepareForValidation() { $input = $this->all(); $input = $this->decodePrimaryKeys($input); $this->replace($input); } }