An extension for the Eloquent class (Laravel)