PHP Trait Flarum\Core\Support\ScopeVisibilityTrait

Mostrar archivo Open project: flarum/core

Public Methods

Method Description
scopeWhereVisibleTo ( Builder $query, User $actor ) Scope a query to only include records that are visible to a user.

Method Details

scopeWhereVisibleTo() public method

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