PHP code example of nusait / usermanager-l4

1. Go to this page and download the library: Download nusait/usermanager-l4 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nusait / usermanager-l4 example snippets



	return array(
		'rdn' => 'your rdn string',
		'password' => 'your password'
	);

 ...
class User extends Eloquent implements UserInterface, RemindableInterface {
	use Nusait\UsermanagerL4\Traits\UserManagerUserRelatable;
 ...

 ...
class Role extends Eloquent {
	use Nusait\UsermanagerL4\Traits\UserManagerRoleRelatable;
 ...
app.php

php artisan config:publish nusait/usermanager-l4

php artisan usermanager:adduser netid --role="admin"