Skip to content
Advertisement

Add days to date in Laravel

I am beginner in Laravel. I use in my project Laravel 5.8.

I have this code:

JavaScript

How can I add $userPromotionDays to $daysToAdd (in Laravel/Carbon)?

Advertisement

Answer

You can create date with custom format and then add days to it using carbon.

JavaScript

You can see details documentation here.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement