The theme comes with an out of the box user management
option. To access this option ,click the "Examples/User Management" link in the left sidebar or add
/user to the URL.
The first thing you will see is a list of existing
users. You can add new ones by clicking the "Add user" button (above the table on the right). On the Add
user page, you will find a form which allows you to fill
out the user`s name, email, role and password. All pages
are generated using blade templates:
Validation rules were added to prevent errors in the
form fields (see
App\Http\Requests\UserRequest). Note that these validation rules also apply for the
user edit option.
The policy which authorizes the user to access the user
management pages is implemented in
App\Policies\UserPolicy.php.
Once you add more users, the list will grow and for
every user you will have edit and delete options (access
these options by clicking the three dotted menu that
appears at the end of every row).
All the sample code for the user management can be found
in
App\Http\Controllers\UserController. See store method example bellow: