I want to get the current day as a number for example lets assume that the week starts from Saturday =1 so, today(Sunday) =2; using Carbon;
$dt = Carbon::now()->week()->currentDay();
You can get with: Carbon::now()->dayOfWeek
Carbon - Getters documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With