Level 20
Your comparision operator is wrong flip it .
Flight::onlyTrashed()
->where('deleted_at', '<=', now()->subDays(5))
->get();
2 likes
Anyone know why this is not working?
Flight::onlyTrashed()->whereDate('deleted_at', '>=', now()->subDays(5)->toDateTimeString())->get();
It returns all the trashed... but I want only the trashed older then 5 days. How can I do that?
Your comparision operator is wrong flip it .
Flight::onlyTrashed()
->where('deleted_at', '<=', now()->subDays(5))
->get();
Please or to participate in this conversation.