PHP 클래스 Socieboy\Forum\Entities\Libs\BaseRepo

파일 보기 프로젝트 열기: socieboy/forum

보호된 프로퍼티들

프로퍼티 타입 설명
$model

공개 메소드들

메소드 설명
__construct ( )
all ( $columns = ['*'] )
find ( $id, array $columns = ['*'] )
findBySlug ( $slug )
findOrFail ( $id, array $columns = ['*'] )
groupBy ( $colum )
latest ( )
lists ( $column, $key = null )
model ( )
onlyTrashed ( )
orderBy ( $colum, $type = 'DESC' )
paginate ( $number = 10 )
shuffle ( )
take ( $num )
where ( $column, $operator = null, $value = null )
whereIn ( $colum, array $array )
withTrashed ( )

메소드 상세

__construct() 공개 메소드

public __construct ( )

all() 공개 메소드

public all ( $columns = ['*'] )

find() 공개 메소드

public find ( $id, array $columns = ['*'] )
$columns array

findBySlug() 공개 메소드

public findBySlug ( $slug )

findOrFail() 공개 메소드

public findOrFail ( $id, array $columns = ['*'] )
$columns array

groupBy() 공개 메소드

public groupBy ( $colum )

latest() 공개 메소드

public latest ( )

lists() 공개 메소드

public lists ( $column, $key = null )

model() 추상적인 공개 메소드

abstract public model ( )

onlyTrashed() 공개 메소드

public onlyTrashed ( )

orderBy() 공개 메소드

public orderBy ( $colum, $type = 'DESC' )

paginate() 공개 메소드

public paginate ( $number = 10 )

shuffle() 공개 메소드

public shuffle ( )

take() 공개 메소드

public take ( $num )

where() 공개 메소드

public where ( $column, $operator = null, $value = null )

whereIn() 공개 메소드

public whereIn ( $colum, array $array )
$array array

withTrashed() 공개 메소드

public withTrashed ( )

프로퍼티 상세

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

protected $model