guard('vendor')->user()->vendor_id == $this->document->documentable_id || $this->document->company_id == auth()->guard('vendor')->user()->company_id); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ // ]; } }