Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

Any possibility to use cache other than array? #911

Open abbasharoon opened 6 years ago

abbasharoon commented 6 years ago

Hi,

Thanks for the nice package. I just stumbled upon this error:

BadMethodCallException {#1360
  #message: "This cache store does not support tagging."
  #code: 0
  #file: "/home/vagrant/code/backend/vendor/laravel/framework/src/Illuminate/Cache/Repository.php"
  #line: 419

Googling the error led me to few issues from 2016 on this repo with no definite answer but to change the cache driver to array. Some users suggested that updating to latest version solves the problem.

I am on version 5.2.x with Laravel 5.5.x . Am I missing anything or do you still require the cache to be an array?

And if that's so, is that production friendly?

Thanks

andrey-helldar commented 6 years ago

I use Laravel 5.6. CACHE_DRIVER=file or CACHE_DRIVER=database (I use MySQL 5.7 database). I get the same error:

 BadMethodCallException: This cache store does not support tagging.
abbasharoon commented 6 years ago

This package seems to be not maintained anymore. I moved to Bouncer https://github.com/JosephSilber/bouncer Which has much nicer methods and wider suppprt for cache and mutli tenancy etc.

andrey-helldar commented 6 years ago

@sherkhanz Thanks!