title: How to set up alerts from 3rd party api using Laravel?
body: <p>I have Laravel app, and I have 3rd party api, I want to request this api every minute using console command and check the value of a parameter. This api returns a parameter with value 0 and 1. It is consistent with value 1, but if something breaks in that 3rd party api it changes to 0, I want to send notifications by email.</p>
  <p>What is the better way where to keep that value 1? If I send a request every minute. But I don't want to send an email every minute. I want to send it once every 15 minutes may be. Saying &quot;this api still has an issue...&quot;</p>
  <p>Of course I can create a table in the DB just for that, But I was thinking is there any other way? Sessions doesn't work for console command. I just need to store one value for a short period of time , if that value didn't change from 0 , then send an email again. and keep sending it every 15 minutes until it will change to 1.</p>