Skip to content

nusait/usermanager-l4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UserManager Artisan Command Package

Available Commands

usermanager:adduser
usermanager:listusers

To Install

  1. Include the following in your composer.json
"nusait/usermanager-l4" : "*"
  1. Run
composer update
  1. Include the following in your app.php in your config folder
'Nusait\UsermanagerL4\UsermanagerL4ServiceProvider',
  1. Publish the configuration
php artisan config:publish nusait/usermanager-l4
  1. If you don't have a ldap.php in your app/config folder, Create one with the following:
<?php
	return array(
		'rdn' => 'your rdn string',
		'password' => 'your password'
	);
  1. Include Traits in your User and Role models

(User Model)

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

(Role Model)

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

To Use

Run (on production server) Example:

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

About

UserManger Artisan Command Package

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages