Caching & search configuration in repository classes

This commit is contained in:
Nabeel Shahzad
2017-12-01 10:53:33 -06:00
parent 8509daab35
commit 9706114289
12 changed files with 56 additions and 104 deletions

View File

@@ -10,19 +10,12 @@ class AircraftRepository extends BaseRepository implements CacheableInterface
{
use CacheableRepository;
/**
* @var array
*/
protected $fieldSearchable
= [
'name',
'registration',
'active',
];
protected $fieldSearchable = [
'name' => 'like',
'registration' => 'like',
'active',
];
/**
* Configure the Model
**/
public function model()
{
return Aircraft::class;