| 1 | <?php |
||
| 9 | class TranslationScope implements Scope |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Eloquent model object. |
||
| 13 | * |
||
| 14 | * @var \Illuminate\Database\Eloquent\Model |
||
| 15 | */ |
||
| 16 | public $model; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Apply the scope to a given Eloquent query builder. |
||
| 20 | * |
||
| 21 | * @param \Illuminate\Database\Eloquent\Builder $builder |
||
| 22 | * @param \Illuminate\Database\Eloquent\Model $model |
||
| 23 | * |
||
| 24 | * @return \Illuminate\Database\Eloquent\Builder |
||
| 25 | */ |
||
| 26 | public function apply(Builder $builder, Model $model): Builder |
||
| 32 | } |
||
| 33 |