update helper service name
This commit is contained in:
@@ -109,7 +109,11 @@ class Helper
|
||||
public static function serviceName($code)
|
||||
{
|
||||
$serviceName = Service::where('code', $code)->get()->first();
|
||||
return $serviceName->name;
|
||||
if ($serviceName){
|
||||
return $serviceName->name;
|
||||
} else {
|
||||
return '-';
|
||||
}
|
||||
}
|
||||
|
||||
public static function paginateResources($resource)
|
||||
|
||||
Reference in New Issue
Block a user