Posts

12 Hidden Features of Laravel Eloquent
Laravel Eloquent is a feature-rich ORM (Object Relational Model). You can not find all the features in official documentation of Laravel Eloquent. I believe, to understand any open source software or framework, you have to spend more...
4 Comments
Checking If A Mutator or Accessor Has Been Set Eloquent Model
There are lots of hidden gems in Laravel Model' code base. Today, while going through the code base of Illuminate\Database\Eloquent\Model class, I found that we can check if a mutator or accessor has been set for a model or...
0 Comments
Attribute Casting in Laravel Eloquent Models
Laravel Eloquent provides a convenient way to change the data type of attributes using attribute casting. Attribute casting means, changing the value of an attribute to a particular data type like boolean, integer, strings or array. To...
1 Comments
How To Use Laravel Model Observers
Laravel's Eloquent ORM is the rock-solid implementation of Active Record. Apart from other awesome features offered by Laravel Eloquent, Laravel implements Observer Pattern to fire some events, which can be listened to hook into, when...
2 Comments
Using Laravel Pluck To Extract Certain Values
Laravel Collection is the best part of the Laravel framework which I enjoy during Laravel development. Laravel Pluck method is part of the Laravel Collections. You might often run into a situation where you have to extract certain value...
0 Comments
Using Joins in Laravel Eloquent Queries
Laravel applications which depend heavily on database interaction using Laravel Eloquent often create performance issues. To improve the performance of your application you have to refactor your queries and keep an eye on the memory...
0 Comments
Page 1 of 2