Tag: Eloquent
Laravel: update vs fill
Danyal December 7, 2020
Let’s take a look at the difference between update and fill of Eloquent methods.
What is the difference between a model and a repository
Danyal July 5, 2019
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 Eloquent, Entity, laravel, Laravel 5.6, Models, Repository, Symfony, Symfony 4
Self relation in laravel eloquent
Danyal January 25, 2018
Use case: Suppose you need to store endless parent child objects in single table. Example:…
Posted in Laravel, PHP Tagged Eloquent, Laravel 5.4, laravel 5.5, php