It looks like you're trying to use Carbon to filter the Article model by published_at and expired_at dates and times. The issue with your code is that you're using the whereDate and whereTime methods together, but these methods are designed to work on a date or time column, respectively.
Instead of using the whereDate and whereTime methods, you can use the where method to filter the Article model by the published_at and expired_at columns. The where method allows you to specify a custom comparison operator, so you can use it to compare the published_at and expired_at columns to the current date and time.
Here's an example of how you could use the where method to filter the Article model:
$latest_article = Article::where('published_at', '<=', Carbon::now())
->where('expired_at', '>', Carbon::now())
->where('status', 1)
->latest()
->limit(3)
->get();
This code will retrieve the three most recently published articles that have a published_at date and time that is less than or equal to the current date and time, and an expired_at date and time that is greater than the current date and time.