Zizaco / entrust

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

Errror -> This cache store does not support targging. Laravel 5.4.* #798

Open Daespinosag opened 7 years ago

Daespinosag commented 7 years ago

Hello, I have problems with the cache in laravel 5.4. Install "acoustep / entrust-gui": "5.2.x-dev" and "zizaco / entrust": "5.2.x-dev". Change the "config / cache.php" and ".env" files to work with the pluggin arrary.

Errror BandMethodCallException This cache store does not support targging. in Repository.php (line 352) at Repository->tags('role_user') in CacheManager.php (line 302) at CacheManager->__call('tags', array('role_user')) in Facade.php (line 221) at Facade::__callStatic('tags', array('role_user')) in EntrustUserTrait.php (line 22) ...

PaoloFalomo commented 7 years ago

Did you tried php artisan config:cache ?

Daespinosag commented 7 years ago

Yes, and it didn't work. I have uninstalled it.

PaoloFalomo commented 7 years ago

i use CACHE_DRIVER=array on my .env - this might help

Daespinosag commented 7 years ago

I did and it didn't work.

sadhakbj commented 7 years ago

set CACHE_ARRAY to array

bogdanmartinescu commented 7 years ago

Had the same error here and changed CACHE_DRIVER=array in my .env file. After php artisan config:cache it now works again. Thanks!