1 | <?php |
||
8 | class ActivatableScope implements Scope |
||
9 | { |
||
10 | /** |
||
11 | * Apply the scope to a given Eloquent query builder. |
||
12 | * |
||
13 | * @param \Illuminate\Database\Eloquent\Builder $builder |
||
14 | * @return void |
||
15 | */ |
||
16 | public function apply(Builder $builder, Model $model) |
||
38 | |||
39 | /** |
||
40 | * Remove the scope from the given Eloquent query builder. |
||
41 | * |
||
42 | * @param \Illuminate\Database\Eloquent\Builder $builder |
||
43 | * @return void |
||
44 | */ |
||
45 | public function remove(Builder $builder) |
||
58 | |||
59 | /** |
||
60 | * Determine if the given where clause is an activated constraint. |
||
61 | * |
||
62 | * @param array $where |
||
63 | * @param string $column |
||
64 | * @return bool |
||
65 | */ |
||
66 | protected function isActivatedConstraint(array $where, $column) |
||
70 | } |
||
71 |