PHP Class Esensi\Model\Model

See also: Illuminate\Database\Eloquent\Model
See also: Esensi\Model\Contracts\EncryptingModelInterface
See also: Esensi\Model\Contracts\HashingModelInterface
See also: Esensi\Model\Contracts\JugglingModelInterface
See also: Esensi\Model\Contracts\PurgingModelInterface
See also: Esensi\Model\Contracts\RelatingModelInterface
See also: Esensi\Model\Contracts\ValidatingModelInterface
See also: Illuminate\Contracts\Support\MessageProvider
Author: Diego Caprioli ([email protected])
Author: Daniel LaBarge ([email protected])
Inheritance: extends Illuminate\Database\Eloquent\Model, implements Esensi\Model\Contracts\EncryptingModelInterface, implements Esensi\Model\Contracts\HashingModelInterface, implements Esensi\Model\Contracts\JugglingModelInterface, implements Illuminate\Contracts\Support\MessageProvider, implements Esensi\Model\Contracts\PurgingModelInterface, implements Esensi\Model\Contracts\RelatingModelInterface, implements Esensi\Model\Contracts\ValidatingModelInterface, use trait Esensi\Model\Traits\ValidatingModelTrait, use trait Esensi\Model\Traits\EncryptingModelTrait, use trait Esensi\Model\Traits\HashingModelTrait, use trait Esensi\Model\Traits\JugglingModelTrait, use trait Esensi\Model\Traits\PurgingModelTrait, use trait Esensi\Model\Traits\RelatingModelTrait
Datei anzeigen Open project: esensi/model Class Usage Examples

Protected Properties

Property Type Description
$dates array The attributes that should be mutated to dates.
$encryptable array The attributes to encrypt when set and decrypt when gotten.
$hashable array The attributes to hash before saving.
$jugglable array Attributes to cast to a different type.
$purgeable array The attributes to purge before saving.
$relationshipPivots array Extra attributes to be added to pivot relationships.
$relationships array Relationships that the model should set up.
$rules array The default rules that the model will validate against.
$rulesets array The rulesets that the model will validate against.

Public Methods

Method Description
__get ( string $key ) : mixed Dynamically retrieve attributes.
__set ( string $key, mixed $value ) Dynamically set attributes.
getMessageBag ( ) : Illuminate\Contracts\Support\MessageBag Get the messages for the instance.

Method Details

__get() public method

Dynamically retrieve attributes.
public __get ( string $key ) : mixed
$key string
return mixed

__set() public method

Dynamically set attributes.
public __set ( string $key, mixed $value )
$key string
$value mixed

getMessageBag() public method

Get the messages for the instance.
public getMessageBag ( ) : Illuminate\Contracts\Support\MessageBag
return Illuminate\Contracts\Support\MessageBag

Property Details

$dates protected_oe property

The attributes that should be mutated to dates.
protected array $dates
return array

$encryptable protected_oe property

The attributes to encrypt when set and decrypt when gotten.
protected array $encryptable
return array

$hashable protected_oe property

The attributes to hash before saving.
protected array $hashable
return array

$jugglable protected_oe property

Attributes to cast to a different type.
protected array $jugglable
return array

$purgeable protected_oe property

The attributes to purge before saving.
protected array $purgeable
return array

$relationshipPivots protected_oe property

Extra attributes to be added to pivot relationships.
protected array $relationshipPivots
return array

$relationships protected_oe property

Relationships that the model should set up.
protected array $relationships
return array

$rules protected_oe property

The default rules that the model will validate against.
protected array $rules
return array

$rulesets protected_oe property

The rulesets that the model will validate against.
Deprecation: watson/validating 0.10.9
protected array $rulesets
return array