user()->user_type != 'Customer') { return $this->responseError([], _lang('You are not authorized to access this feature!'), 403); } return $next($request); } }