Eloquent in Laravel [Laravel 7 from scratch] E09

Опубликовано: 18 Май 2026
на канале: code aalim
250
31

In the previous episode, we used the query builder to fetch the relevant post from the database. However, there's a second option we should consider: Eloquent. Not only does an Eloquent class provide the same clean API for querying your database, but it's also the perfect place to store any appropriate business logic.