src/Http/Controllers/Admin/UsersController.php
public function create(Role $role)
    {
        $this->authorize(UsersPolicy::PERMISSION_CREATE);

        $roles = $role->all();

        $this->setTitle($title = trans('auth::users.titles.create-user'));
        $this->addBreadcrumb($title);

        return $this->view('admin.users.create', compact('roles'));
    }
public function create(Role $role)
    {
        $this->authorize(UsersPolicy::PERMISSION_CREATE);

        $roles = $role->all();

        $this->setTitle($title = trans('auth::users.titles.create-user'));
        $this->addBreadcrumb($title);

        return $this->view('admin.users.create', compact('roles'));
    }
public function create ( Role $ role ) { $ this -> authorize ( UsersPolicy :: PERMISSION_CREATE ) ; $ roles = $ role -> all ( ) ; $ this -> setTitle ( $ title = trans ( 'auth::users.titles.create-user' ) ) ; $ this -> addBreadcrumb ( $ title ) ; return $ this -> view ( 'admin.users.create' , compact ( 'roles' ) ) ; }
Show the create a new user form.

@param  \Arcanesoft\Contracts\Auth\Models\Role  $role

@return \Illuminate\View\View
Show the create a new user form .