user()->can('edit', $this->project); } public function rules() { $rules = []; return $this->globalRules($rules); } protected function prepareForValidation() { $input = $this->decodePrimaryKeys($this->all()); $this->replace($input); } }