how to submit form Automatically, when it time is up?

Am trying to soft delete the post when the timeout, but unable to do that automatically..! Here's My Code:

@php
$date=str_replace('-', '/', $post->created_at);
$endDate=date('Y/m/d H:i:s',strtotime($date. ' + '.$post->post_days.' days'));
@endphp
@if($endDate == 0)
<form action="">
<input type="text" name="postId" value="">
<button type="submit" >test</button>
</form>
@endif


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2GA6Bgd
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

I am unable to figure out how to create payment collection request, after a form has been submitted in laravel

laravel, mysql transaction not working after failed one time