src/Stevemo/Cpanel/Controllers/UsersController.php
public function show($id)
    {
        try
        {
            $throttle = $this->users->getUserThrottle($id);
            $user = $throttle->getUser();
            $permissions = $user->getMergedPermissions();

            return View::make(Config::get('cpanel::views.users_show'))
                ->with('user',$user)
                ->with('groups',$user->getGroups())
                ->with('permissions',$permissions)
                ->with('throttle',$throttle);
        }
        catch ( UserNotFoundException $e)
        {
            return Redirect::route('cpanel.users.index')
                ->with('error', $e->getMessage());
        }
    }
public function show($id)
    {
        try
        {
            $throttle = $this->users->getUserThrottle($id);
            $user = $throttle->getUser();
            $permissions = $user->getMergedPermissions();

            return View::make(Config::get('cpanel::views.users_show'))
                ->with('user',$user)
                ->with('groups',$user->getGroups())
                ->with('permissions',$permissions)
                ->with('throttle',$throttle);
        }
        catch ( UserNotFoundException $e)
        {
            return Redirect::route('cpanel.users.index')
                ->with('error', $e->getMessage());
        }
    }
public function show ( $ id ) { try { $ throttle = $ this -> users -> getUserThrottle ( $ id ) ; $ user = $ throttle -> getUser ( ) ; $ permissions = $ user -> getMergedPermissions ( ) ; return View :: make ( Config :: get ( 'cpanel::views.users_show' ) ) -> with ( 'user' , $ user ) -> with ( 'groups' , $ user -> getGroups ( ) ) -> with ( 'permissions' , $ permissions ) -> with ( 'throttle' , $ throttle ) ; } catch ( UserNotFoundException $ e ) { return Redirect :: route ( 'cpanel.users.index' ) -> with ( 'error' , $ e -> getMessage ( ) ) ; } }
Show a user profile

@author Steve Montambeault
@link   http://stevemo.ca

@param  int $id
@return Response
Show a user profile