I have this PHP code:
$end=date(\'Y-m-d\');
I use it to get the current date, and I need the date 5 years in the future, something like:
Its very very easy with Carbon. $date = "2016-02-16"; // Or Your date $newDate = Carbon::createFromFormat('Y-m-d', $date)->addYear(1);
$date = "2016-02-16"; // Or Your date $newDate = Carbon::createFromFormat('Y-m-d', $date)->addYear(1);