Ejemplo n.º 1
0
 public static function deleteUserByBusinessId($business_id)
 {
     UserBusiness::where('business_id', '=', $business_id)->delete();
 }
Ejemplo n.º 2
0
 public static function isNotAnOwner($user_id)
 {
     return !UserBusiness::getBusinessIdByOwner($user_id);
 }