i am working on project which has question that expires in specified time so how to implement that in such a way that even if the user refresh the page or press the back button the timer should go on.
$count = 900; //how much seconds to remember the questions
$question = Cache::remember('users:1:question', $counter, function () {
return Question::randomQuestion(); /// replace this to get the question
});