Skip to content

Commit

Permalink
Trouble shoot custom namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
waxim authored Apr 12, 2017
1 parent 2a05acd commit cd11e01
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,14 @@ then probably you don't have published Entrust assets or something went wrong wh
First of all check that you have the `entrust.php` file in your `config` directory.
If you don't, then try `php artisan vendor:publish` and, if it does not appear, manually copy the `/vendor/zizaco/entrust/src/config/config.php` file in your config directory and rename it `entrust.php`.

If your app uses a custom namespace then you'll need to tell entrust where your `permission` and `role` models are, you can do this by editing the config file in `config/entrust.php`

```
'role' => 'Custom\Namespace\Role'
```
```
'permission' => 'Custom\Namespace\permission'
```
## License

Entrust is free software distributed under the terms of the MIT license.
Expand Down

0 comments on commit cd11e01

Please sign in to comment.