src/Stevemo/Cpanel/Controllers/UsersController.php
public function create()
    {
        $user = $this->users->getEmptyUser();

        $userPermissions = array();
        $genericPermissions = $this->permissions->generic();
        $modulePermissions = $this->permissions->module();


        //Get Groups
        $groups = $this->groups->findAll();

        return View::make(Config::get('cpanel::views.users_create'))
            ->with('user',$user)
            ->with('userPermissions',$userPermissions)
            ->with('genericPermissions',$genericPermissions)
            ->with('modulePermissions',$modulePermissions)
            ->with('groups',$groups);
    }
public function create()
    {
        $user = $this->users->getEmptyUser();

        $userPermissions = array();
        $genericPermissions = $this->permissions->generic();
        $modulePermissions = $this->permissions->module();


        //Get Groups
        $groups = $this->groups->findAll();

        return View::make(Config::get('cpanel::views.users_create'))
            ->with('user',$user)
            ->with('userPermissions',$userPermissions)
            ->with('genericPermissions',$genericPermissions)
            ->with('modulePermissions',$modulePermissions)
            ->with('groups',$groups);
    }
public function create ( ) { $ user = $ this -> users -> getEmptyUser ( ) ; $ userPermissions = array ( ) ; $ genericPermissions = $ this -> permissions -> generic ( ) ; $ modulePermissions = $ this -> permissions -> module ( ) ; //Get Groups $ groups = $ this -> groups -> findAll ( ) ; return View :: make ( Config :: get ( 'cpanel::views.users_create' ) ) -> with ( 'user' , $ user ) -> with ( 'userPermissions' , $ userPermissions ) -> with ( 'genericPermissions' , $ genericPermissions ) -> with ( 'modulePermissions' , $ modulePermissions ) -> with ( 'groups' , $ groups ) ; }
Display add user form

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

@return \Illuminate\View\View
Display add user form