%PDF- %PDF-
Direktori : /var/www/html/news/app/Repositories/Notification/ |
Current File : /var/www/html/news/app/Repositories/Notification/NotificationEloquentRepository.php |
<?php namespace App\Repositories\Notification; use App\Models\Notification; use App\Repositories\Base\BaseEloquentRepository; use Illuminate\Container\Container; use Illuminate\Support\Collection; class NotificationEloquentRepository extends BaseEloquentRepository implements NotificationRepository { public function __construct(Container $container, Collection $collection) { parent::__construct($container, $collection); } public function model() { return Notification::class; } /** * @param $code * @return mixed|void */ public function getNotificationByCode($code) { return $this->query()->where('code', $code)->first(); } }