App\Traits\CanFilterByUser::scopeByCurrentUser PHP 메소드

scopeByCurrentUser() 공개 메소드

public scopeByCurrentUser ( $query )
    public function scopeByCurrentUser($query)
    {
        return $query->whereUserId(auth()->user()->id);
    }
CanFilterByUser