java-fpm / app /Services /GenreServices.php
w
1
560ee81
Raw
History Blame Contribute Delete
573 Bytes
<?php
namespace App\Services;
use App\Models\Genre as GenreModel;
class GenreServices extends BaseServices
{
public function __construct(GenreModel $model)
{
parent::__construct($model);
}
public function index($request)
{
// $limit = $request->get('limit', GenreModel::LIMIT_PAGE);
$query = $this->model;
return $query->get();
}
public function show($chapterNumber)
{
$data = $this->model->where('chapter_number', $chapterNumber)->with('contentImages')->first();
return $data;
}
}