Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:21Length:2.7 hours
Getting started with laravel 4
  • Overview
  • Transcript

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 vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php.