PHP 클래스 Corcel\PostMeta

상속: extends Model
파일 보기 프로젝트 열기: jgrossi/corcel 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$timestamps

보호된 프로퍼티들

프로퍼티 타입 설명
$appends array The accessors to append to the model's array form.
$fillable
$primaryKey
$table

공개 메소드들

메소드 설명
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.

메소드 상세

getValueAttribute() 공개 메소드

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

newCollection() 공개 메소드

Override newCollection() to return a custom collection
public newCollection ( array $models = [] ) : PostMetaCollection
$models array
리턴 PostMetaCollection

post() 공개 메소드

Post relationship
public post ( $ref = false ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

taxonomy() 공개 메소드

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

프로퍼티 상세

$appends 보호되어 있는 프로퍼티

The accessors to append to the model's array form.
protected array $appends
리턴 array

$fillable 보호되어 있는 프로퍼티

protected $fillable

$primaryKey 보호되어 있는 프로퍼티

protected $primaryKey

$table 보호되어 있는 프로퍼티

protected $table

$timestamps 공개적으로 프로퍼티

public $timestamps