PHP 클래스 app\models\News

상속: extends App\Model
파일 보기 프로젝트 열기: qloog/laravel5-backend 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fillable array The attributes that are mass assignable.
$hidden array The attributes excluded from the model's JSON form.
$table string The table associated with the model.

공개 메소드들

메소드 설명
category ( ) Get the category that owns the news.
getPageImageAttribute ( $value )
syncTags ( array $tags ) Sync tag relation adding new tags as needed
tags ( ) : BelongsToMany The many-to-many relationship between news and tags.
user ( ) : BelongsToMany The one-to-one relationship between news and users.

메소드 상세

category() 공개 메소드

The one-to-one relationship between news and category.
public category ( )

getPageImageAttribute() 공개 메소드

public getPageImageAttribute ( $value )

syncTags() 공개 메소드

Sync tag relation adding new tags as needed
public syncTags ( array $tags )
$tags array

tags() 공개 메소드

The many-to-many relationship between news and tags.
public tags ( ) : BelongsToMany
리턴 BelongsToMany

user() 공개 메소드

The one-to-one relationship between news and users.
public user ( ) : BelongsToMany
리턴 BelongsToMany

프로퍼티 상세

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

The attributes that are mass assignable.
protected array $fillable
리턴 array

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

The attributes excluded from the model's JSON form.
protected array $hidden
리턴 array

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

The table associated with the model.
protected string $table
리턴 string