user()->can('edit', $this->document); } public function rules() { return [ 'name' => 'sometimes|alpha_num' ]; } public function prepareForValidation() { $input = $this->all(); $this->replace($input); } }