Eloquence
trait Eloquence
Methods
Boot the trait.
Register hook on Eloquent method.
Determine whether a method has any hooks registered.
Get the target relation and column from the mapping.
Determine whether the key is meta attribute or actual table field.
Get searchable columns defined on the model.
Get model table columns.
Create new Eloquence query builder for the instance.
Set attribute mutator instance.
Get attribute mutator instance.
Allow custom where method calls on the builder.
Register hook for getAttribute.
Register hook for setAttribute.
Register hook for save.
Register hook for toArray.
Register hook for replicate.
Register hook for isset call.
Register hook for isset call.
No description
No description
Details
at line 51
static void
bootEloquence()
Boot the trait.
at line 71
static void
hook(string $method, string $hook)
Register hook on Eloquent method.
at line 116
static boolean
hasHook(string $method)
Determine whether a method has any hooks registered.
at line 168
array
parseMappedColumn(string $mapping)
Get the target relation and column from the mapping.
at line 185
static boolean
hasColumn(string $key)
Determine whether the key is meta attribute or actual table field.
at line 197
array
getSearchableColumns()
Get searchable columns defined on the model.
at line 207
static array
getColumnListing()
Get model table columns.
at line 236
Builder
newEloquentBuilder(Builder $query)
Create new Eloquence query builder for the instance.
at line 249
static void
setAttributeMutator(Mutator $mutator)
Set attribute mutator instance.
at line 261
static Mutator
getAttributeMutator()
Get attribute mutator instance.
at line 282
Builder
queryHook(Builder $query, string $method, ArgumentBag $args)
Allow custom where method calls on the builder.
at line 304
mixed
getAttribute(string $key)
Register hook for getAttribute.
at line 327
void
setAttribute(string $key, mixed $value)
Register hook for setAttribute.
at line 348
boolean
save(array $options = array())
Register hook for save.
at line 373
mixed
toArray()
Register hook for toArray.
at line 393
mixed
replicate(array $except = null)
Register hook for replicate.
at line 416
boolean
__isset(string $key)
Register hook for isset call.
at line 438
boolean
__unset(string $key)
Register hook for isset call.