Skip to content

Commit ba92414

Browse files
authored
Merge pull request #771 from waxim/patch-1
Trouble shoot custom namespaces.
2 parents 838f99f + cd11e01 commit ba92414

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,14 @@ then probably you don't have published Entrust assets or something went wrong wh
534534
First of all check that you have the `entrust.php` file in your `config` directory.
535535
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`.
536536

537+
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`
538+
539+
```
540+
'role' => 'Custom\Namespace\Role'
541+
```
542+
```
543+
'permission' => 'Custom\Namespace\permission'
544+
```
537545
## License
538546

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

0 commit comments

Comments
 (0)