Add ability to pass in parameters to an Award class #155

This commit is contained in:
Nabeel Shahzad
2018-03-17 11:35:34 -05:00
parent 26f00ccaae
commit 7feecb507d
8 changed files with 90 additions and 33 deletions

View File

@@ -3,8 +3,8 @@
namespace App\Repositories;
use App\Models\Award;
use App\Repositories\Traits\CacheableRepository;
use Prettus\Repository\Contracts\CacheableInterface;
use Prettus\Repository\Traits\CacheableRepository;
class AwardRepository extends BaseRepository implements CacheableInterface
{
@@ -14,7 +14,7 @@ class AwardRepository extends BaseRepository implements CacheableInterface
'title' => 'like',
];
public function model()
public function model(): string
{
return Award::class;
}