I've looked around the web and found you can clear the cache via:
php artisan cache:clear I am looking for a solution where you can turn off the cache in a dev environment. I do not want to run the above cmd everytime.
return Cache::remember('my-key', 60, function() { //get page }); So above I check the cache, this occurs throughout my app, is there a simple way to disable it in a dev environment?
cacheTimeconfig, and set it to0in dev, and the desired amount in production. I use this configuration as the second argument everywhere.