Laravel
Release notes
Upgrade Guide
Contribution Guide
interface
Illuminate
/
Database
/
Eloquent
/
Scope
You are viewing an older version of the documentation. For the latest, please visit
master documentation
.
Scope
#
Methods
public
#
apply
(
Builder
$builder
,
Model
$model
)
:
void
Apply the scope to a given Eloquent query builder.
Parameters
$builder
Builder
$model
Model
On this page
On this page
Methods
apply