Awards Administration

This commit is contained in:
Servetas George
2018-01-28 21:19:35 +02:00
parent e57f0cb234
commit 78724e981c
16 changed files with 456 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Repositories;
use App\Models\Award;
use App\Repositories\Traits\CacheableRepository;
use Prettus\Repository\Contracts\CacheableInterface;
class AwardRepository extends BaseRepository implements CacheableInterface
{
use CacheableRepository;
protected $fieldSearchable = [
'title' => 'like',
];
public function model()
{
return Award::class;
}
public function findByTitle($title) {
return $this->findByField('title', $title)->first();
}
}