class Scope

Mark a method as a local query scope.

Methods with this attribute can be called as scopes without the traditional 'scope' prefix convention:

#[Scope]
protected function active(Builder $query): void
{
    $query->where('active', true);
}

// Called as: User::active() or $query->active()

Methods

__construct()

No description

Details

at line 26
__construct()

No description