onecentlin / laravel5-snippets-vscode

Laravel snippets for Visual Studio Code (Support Laravel 5 and above)
MIT License
36 stars 19 forks source link

Cache - Use ttl instead of minutes #16

Closed nicoeg closed 5 years ago

nicoeg commented 5 years ago

In Laravel 5.8 the ttl parameter was changed from minutes to seconds. I don't see any easy method to determine Laravel version so I suggest changing the parameter to ttl instead.

Reference: https://laravel.com/docs/5.8/upgrade#cache-ttl-in-seconds