entrust: Can't delete Role model since upgrading to Laravel 5.2
The following exception gets thrown when trying to delete a Role model:
FatalErrorException in Model.php line 1011:
Class name must be a valid object or a string
I believe I have followed the installation instructions to the letter. All I am calling to throw this error is:
$role = Role::findOrFail(1);
$role->delete();
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 26
@akramwahid would you be so nice and post the solution for the error?
Well, nevermind…
File: EntrustRoleTrait.php
Replace
with
I had this issue too. Am not confortablen with changes core vendor files. so inside App\Role.php is added `/**