Posts

Using Soft Delete in Laravel Eloquent Models
Laravel provides amazing features to deal with your database records and soft delete is one of them. Today, we will be exploring how we can practically use the soft delete functionality. Before diving into this topic, let me explain...
1 Comments
Laravel Eloquent Many To Many Relationship Explained
In this post, we will look at one of the mostly yet advanced relationship type Many To Many offered by Laravel Eloquent. Before proceeding, I assume you should know how One to One and One To Many Relationship works in Laravel. So...
5 Comments
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...
10 Comments
Page 1 of 2