Understanding Laravel Eloquent's Active Record Pattern

Laravel’s Eloquent makes it feel almost magical to move data in and out of your database. Under the hood, that magic is powered by the Active Record pattern, that's a straightforward way to treat a database row as a first-class PHP object with built-in CRUD behaviour. In this article I'll explain what the Active Record pattern is, its pros and cons and we will build a tiny implementation of it in…