An extension for Eloquent class (Laravel)