New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to undefined method Illuminate\Database\Query\Builder::cachedPermissions() #566
Comments
I am getting the same error BadMethodCallException in Builder.php line 2251: |
@rameshpaudel Did you find the solution? |
@shanka12 Changing the .env CACHE_DRIVER=array solved my problem however, I think its not a permanent solution. But be aware the throttle doesn't seem to work after updating the CACHE_DRIVER. Took most of my time debugging throttle when the error was on the .env file. |
add this line in composer.json |
@rameshpaudel I am already using array. still not work ability method. |
Any solution ? |
the same problem with my code also. |
Hello Guys I found the quick solution for this issue is do as bellow. find the Role.php file and updated as bellow and extend with |
vrkansagara's answer worked for me! |
use Zizaco\Entrust\EntrustRole; and extend with EntrustRole |
I have this same error in the version of Laravel 5.3 and I have tried the above indications and the error persists. Does anyone have a solution in this case? |
After changing CACHE_DRIVER=file to CACHE_DRIVER=array. Stop the artisan server and then restart it. |
But the best solution for me was.
|
Same error |
@afrasiyabhaider I moved to another package so cant able to help |
When I use ability method, i'm getting following error (laravel 5.2)
ErrorException in Builder.php line 2161:
Call to undefined method Illuminate\Database\Query\Builder::cachedPermissions()
The text was updated successfully, but these errors were encountered: