From cd11e01eafd9998c20c8ff8502cf388b50bc8b95 Mon Sep 17 00:00:00 2001 From: Alan Cole Date: Wed, 12 Apr 2017 14:43:12 +0100 Subject: [PATCH] Trouble shoot custom namespaces. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d49ca6e6..d65603d9 100644 --- a/README.md +++ b/README.md @@ -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.