phplaravel-5entrust

How to cache permission and role?


I use https://github.com/Zizaco/entrust Because to many same requests enter image description here


Solution

  • add 'ttl' => 30 //In minutes in cache.php

    and in .env

    CACHE_DRIVER=array