moved folders to common directory

This commit is contained in:
denisdulici
2018-06-10 02:48:51 +03:00
parent 7fa629e8b5
commit b1fd49c507
71 changed files with 719 additions and 647 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Filters\Common;
use EloquentFilter\ModelFilter;
class Companies extends ModelFilter
{
/**
* Related Models that have ModelFilters as well as the method on the ModelFilter
* As [relatedModel => [input_key1, input_key2]].
*
* @var array
*/
public $relations = [];
public function search($query)
{
return $this->whereLike('domain', $query);
}
}

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Filters\Common;
use EloquentFilter\ModelFilter;
class Items extends ModelFilter
{
/**
* Related Models that have ModelFilters as well as the method on the ModelFilter
* As [relatedModel => [input_key1, input_key2]].
*
* @var array
*/
public $relations = [];
public function search($query)
{
return $this->whereLike('name', $query);
}
public function category($id)
{
return $this->where('category_id', $id);
}
}