Published On Jan. 27th 2017

Laravel 5.4 From Scratch: Archives

Episode 20 Run Time 11:23

Download
It would be nice to have a section in the sidebar that displays all months that have associated posts. To allow for this, we'll need to construct a special SQL query that collects and joins the necessary columns. In this lesson, you'll learn how to write this query, and then translate it to Eloquent.