App\Models\CompanyableScope Class Reference
Handle query scoping for full company support. More...
Inheritance diagram for App\Models\CompanyableScope:

Public Member Functions | |
apply (Builder $builder, Model $model) | |
Apply the scope to a given Eloquent query builder. More... | |
remove (Builder $builder) | |
Detailed Description
Handle query scoping for full company support.
- Todo:
- Move this to a more Laravel 5.2 esque way
- Version
- v1.0
Definition at line 14 of file CompanyableScope.php.
Member Function Documentation
App\Models\CompanyableScope::apply | ( | Builder | $builder, |
Model | $model | ||
) |
Apply the scope to a given Eloquent query builder.
- Parameters
-
\Illuminate\Database\Eloquent\Builder $builder
- Returns
- void
Definition at line 22 of file CompanyableScope.php.
static scopeCompanyables($query, $column= 'company_id')
Definition: Company.php:130
App\Models\CompanyableScope::remove | ( | Builder | $builder | ) |
- Todo:
- IMPLEMENT Remove the scope from the given Eloquent query builder.
- Parameters
-
\Illuminate\Database\Eloquent\Builder $builder
- Returns
- void
Definition at line 34 of file CompanyableScope.php.
The documentation for this class was generated from the following file: