public function create()
    {
        $roles = $this->getAllowedRoles();

        $selectedRoles = $this->request->old('roles');
        $user          = new User([
            'blocked'   => 0,
            'confirmed' => 1,
        ]);

        return view('administrator.users.create', compact('user', 'roles', 'selectedRoles'));
    }
public function create()
    {
        $roles = $this->getAllowedRoles();

        $selectedRoles = $this->request->old('roles');
        $user          = new User([
            'blocked'   => 0,
            'confirmed' => 1,
        ]);

        return view('administrator.users.create', compact('user', 'roles', 'selectedRoles'));
    }
public function create ( ) { $ roles = $ this -> getAllowedRoles ( ) ; $ selectedRoles = $ this -> request -> old ( 'roles' ) ; $ user = new User ( [ 'blocked' => 0 , 'confirmed' => 1 , ] ) ; return view ( 'administrator.users.create' , compact ( 'user' , 'roles' , 'selectedRoles' ) ) ; }
Show user form.

@return \Illuminate\View\View
Show user form .