.env
file as shown below:Reminder
model:app/Reminder.php
and add the code below:todaysScripture
and sendReminder
functions.todaysScripture
generates the scripture of the day while the sendReminder
functions send the scripture reminder message (with a link to a detailed breakdown of the scripture).ReminderController
controller:routes/api.php
.routes/api.php
to connect the function we created in ‘ReminderController’ to the API route.app/Console/Commands/sendReminder.php
and update the handle
method and the signature
variable as shown below:app/Console/Kernel.php
file's schedule
method.schedule
method with this single line of code.schedule:run
command is executed, Laravel will evaluate the scheduled tasks and run the tasks that are due.