Example #1
0
 public function companyServicesIds()
 {
     if (Auth::user()["type"] == self::TYPE_PAYEE) {
         return [];
     } else {
         return CompanyService::select("service_id")->where('company_id', '=', Auth::user()["company_id"])->get()->toArray();
     }
 }