My table has data id post_id description and dispose_time. I wanted to delete data from DB if current time and date is greater than the current time.
$post = Post::delete()->where('dispose_time' > DATE_SUB(NOW())), INTERVAL 10 MINUTE));
something like this . it is giving me the error and the dispose_time in my DB is in timestamp format something like this 1555107000 .
Any Help appreciated.
Use delete clause at last , like this: