kodeine / laravel-acl

Light-weight role-based permissions system for Laravel 6+ built in Auth system.
MIT License
786 stars 216 forks source link

Fix cache TTL #245

Closed jshah4517 closed 4 years ago

jshah4517 commented 4 years ago

In Laravel 5.8, the cache was changed so it could accept seconds for TTL rather than minutes. https://laravel.com/docs/5.8/upgrade#cache-ttl-in-seconds

It appears that this hasn't been changed in Kodeine so currently, the cache works for 1 second only by default. Changed it back to use minutes and also added a default value to the config helper in case it is does not exist.