Merge #154 Awards into dev

This commit is contained in:
Nabeel Shahzad
2018-03-17 00:03:17 -05:00
16 changed files with 457 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();
}
}