get only year using php from created date in laravel code example Example: get year in laravel 8 {{ now()->year }}