laravel get year of month code example
Example 1: get year in laravel 8
{{ now()->year }}
Example 2: where year month laravel
$q->whereDay('created_at', '=', date('d'));
$q->whereMonth('created_at', '=', date('m'));
$q->whereYear('created_at', '=', date('Y'));