Owl\Http\Controllers\UserRoleController::initial PHP Метод

initial() публичный Метод

public initial ( )
    public function initial()
    {
        $owners = $this->userService->getOwners();
        if (!empty($owners)) {
            \App::abort(500);
        }
        $user = $this->userService->getCurrentUser();
        if ($user == null) {
            \App::abort(404);
        }
        return view('user.role.initial', compact('user'));
    }