12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace App\ModelFilters;
- use EloquentFilter\ModelFilter;
- class LibraryFilter extends ModelFilter
- {
-
- public $relations = [];
- public function type($type)
- {
- return $this->where("type", $type);
- }
- public function project($id)
- {
- return $this->where("project_id", $id);
- }
- public function asset($id)
- {
- return $this->where("asset_id", $id);
- }
- }
|