Cómo obtener el año de la base de datos de campo en la colección Laravel
$post = Post::find(2);
$year = $post->created_at->year;
$month = $post->created_at->month;
Mohamad
$post = Post::find(2);
$year = $post->created_at->year;
$month = $post->created_at->month;