%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/app/Repositories/Notification/
Upload File :
Create Path :
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();
    }

}

Zerion Mini Shell 1.0