Path : /var/www/clients/client0/web25/web/app/Services/ |
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(); } }