Get all the names of days in accordance to today's day with carbon
Hey, If my current day is Tue, then I want the output to be Mon, Sun, Sat, Fri, Thu, Wed. i.e name of the day for past 6 days. I am able to get the current day name with the following code. (But it's still not is short form)
$day = Carbon::now()->format( 'l' );
I was wondering how to get this done.
Want to reply to this thread?Login with github.