Tag: Eloquent


Laravel: update vs fill

Let’s take a look at the difference between update and fill of Eloquent methods.

 Posted in Daily Tips, Laravel Tagged , , , ,

What is the difference between a model and a repository

Repository actually allows you to separate your business logic from database layer (Model). Repository/Entity are…

 Posted in Databases, Eloquent, Laravel, PHP, Symfony, Tips, Uncategorized Tagged , , , , , , ,

Self relation in laravel eloquent

Use case:  Suppose you need to store endless parent child objects in single table. Example:…

 Posted in Laravel, PHP Tagged , , ,