I have this collection from a database where I have a column called “event_date”. What I want is just to get only the day names from that column that comes in a collection. I know you can use Carbon to get the name days through, for example, a method called ->format(), however I get an error saying that this method
Tag: php-carbon
PHP Carbon Check If Chosen Date is Greater than Other Date
I’ve started using PHP Carbon for my application since it seems so much easier than using and manipulating date/time with the DateTime class. What I want to do is check if the chosen date ($chosen_date) is greater than another date ($whitelist_date). I have tried this in the code below: The original $chosen_date value comes from POST data. Here is the