Skip to content

Commit

Permalink
Merge pull request #6 from sonnygauran/master
Browse files Browse the repository at this point in the history
Updating README.md to include initial role required.
  • Loading branch information
maximebeaudoin committed Sep 8, 2013
2 parents ba60067 + 72cfc1f commit 21dd1af
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Expand Up @@ -96,12 +96,29 @@ php artisan migrate --package="firalabs/firadmin"

##Create default user

You need to have at least one register user in your database. We provided a easy way to create a user using artisan command.
You need to have at least one register user in your database. We provided a easy way to create a user using artisan command. Use `--role=""administrator""` when setting up a user for the first time.

```bash
php artisan create:user [--role[="..."]] username email password
```
You can also change the role names Firadmin checks on `app/config/packages/firalabs/firadmin/config.php`.
```php
'roles' => array(
/*
* Grant all privileges to the administrator roles.
*/
'administrator' => true,

/*
* Granted basics CRUD privileges to the user administrator role on the user resource.
*/
'user_administrator' => array('user' => array('create', 'read', 'update', 'delete'))
)
```
##Register dashboard controller
You must set a route to the dashboard admin panel in `app/routes.php`. We provide a default dashboard controller for testing purpose.
Expand Down

0 comments on commit 21dd1af

Please sign in to comment.