mardi 25 février 2020

how to get week +4 in this day with carbon

I have a problem here I want to get the +4 week date from the current date using carbon, the +4 week plan will be dynamic depending on the input entered by the user, how do I make it, I've tried using this code but it's time to step back

 $dt = Carbon::now();
        dd($dt->week(4)->format('Y-m-d'));


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2VnY5tm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire