From the course: Advanced Laravel

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Write commands

Write commands

- [Instructor] Before we move on to learning something else, I just noticed that in this view, the dates are not in order. I'd like to see 14th April before 15th April. We did chain the query with oldest, but looks like something isn't working. So let's fix that first. Open booking controller. And here we did chain it with oldest, but the problem is it is ordering based on the timestamp that its created at and not this date time. So we'll have to pass date time sure. And now it should work, let me check. Refresh, and yes, now we have 13th April classes first and then 14th and so on. All right. We have been working on this app for quite a while. Sometimes it takes days to create one feature. Let's say we are working on some member feature, took a break, and came back to it after three or four days. But after four days, all these classes will be pass dated. They will not appear in the list anymore. We will have to…

Contents