3.3 Eloquent CRUD
In this lesson we’ll work with Laravel’s Eloquent. Eloquent is a powerful Active Record-like ORM with elegant syntax. In just a few lines of code we’ll have access to all the CRUD (Create, Read, Update, Delete) methods you can think of. We will fetch, create, update and delete posts that live in our database. Also, we’ll guard our Post model against mass assignment.
Note: The Eloquent class lives in