PHP Class Corcel\PostMeta

Inheritance: extends Model
Afficher le fichier Open project: jgrossi/corcel Class Usage Examples

Méthodes publiques

Свойство Type Description
$timestamps

Protected Properties

Свойство Type Description
$appends array The accessors to append to the model's array form.
$fillable
$primaryKey
$table

Méthodes publiques

Méthode Description
getValueAttribute ( ) : value Gets the value.
newCollection ( array $models = [] ) : PostMetaCollection Override newCollection() to return a custom collection
post ( $ref = false ) : BelongsTo Post relationship
taxonomy ( $primary = null, $where = null ) : Illuminate\Database\Eloquent\Relations\Relation Taxonomy relationship from the meta_value.

Method Details

getValueAttribute() public méthode

Tries to unserialize the object and returns the value if that doesn't work.
public getValueAttribute ( ) : value
Résultat value

newCollection() public méthode

Override newCollection() to return a custom collection
public newCollection ( array $models = [] ) : PostMetaCollection
$models array
Résultat PostMetaCollection

post() public méthode

Post relationship
public post ( $ref = false ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

taxonomy() public méthode

Taxonomy relationship from the meta_value.
public taxonomy ( $primary = null, $where = null ) : Illuminate\Database\Eloquent\Relations\Relation
Résultat Illuminate\Database\Eloquent\Relations\Relation

Property Details

$appends protected_oe property

The accessors to append to the model's array form.
protected array $appends
Résultat array

$fillable protected_oe property

protected $fillable

$primaryKey protected_oe property

protected $primaryKey

$table protected_oe property

protected $table

$timestamps public_oe property

public $timestamps