Skip to content

Commit

Permalink
Updating README.md to include initial role required.
Browse files Browse the repository at this point in the history
The roles required by Firadmin are found at `app/config/packages/firalabs/firadmin/config.php`
and these needs to match with the role being specified by the user upon `artisan create:user --role="administrator"`.
  • Loading branch information
sonnygauran committed Sep 8, 2013
1 parent ba60067 commit 72cfc1f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
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 72cfc1f

Please sign in to comment.