Our first core concept is collection chaining. As you've surely learned by now, when fetching multiple records from a database, a
Collection instance is returned. Not only does this object serve as a wrapper around your result set, but it also provides dozens upon dozens of useful manipulation methods that you'll reach for in every project you build.
app/Modelsdirectory. This means an
App\Postnamespace should now be