PHP 트레잇 Flarum\Core\Support\ScopeVisibilityTrait

파일 보기 프로젝트 열기: flarum/core

공개 메소드들

메소드 설명
scopeWhereVisibleTo ( Builder $query, User $actor ) Scope a query to only include records that are visible to a user.

메소드 상세

scopeWhereVisibleTo() 공개 메소드

Scope a query to only include records that are visible to a user.
public scopeWhereVisibleTo ( Builder $query, User $actor )
$query Illuminate\Database\Eloquent\Builder
$actor Flarum\Core\User