use Carbon\Carbon; $date = Carbon::now(); getting year and month code example
Example 1: laravel carbon human readable
$comment->created_at->diffForHumans();
Example 2: carbon add few hours
Carbon::now('UTC')->addHour($hours)->format('Y-m-d H:i:s')