laravel get current year code example Example 1: get current year php <?php echo date("Y"); ?> Example 2: get year in laravel 8 {{ now()->year }}