V
V
Vanik Khachatryan2017-06-08 18:27:54
Laravel
Vanik Khachatryan, 2017-06-08 18:27:54

How is a controller executed at a specific time?

The goal is this: There is a script, and there is a post, you need it to be deleted at a certain time. The time is in the database.
Question: How is this even done without CRON?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JhaoDa, 2017-06-08
@VaniXac

Answer: no way without CRON.
PS You can check with any request to the site - is it necessary to remove something there, make coffee, turn on the washing machine? But we, like, are all serious guys here ...

S
Stanislav Pochepko, 2017-06-08
@DJZT

If you need to make sure that the post is not shown after a certain time, you can not delete it from the database. Just add a variable with the display end date. And if the current date is greater than this variable, then do not show it. Or rather, make a global scope for this model. And in skoupe to make a condition where
This decision without krone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question