24 lines
474 B
PHP
24 lines
474 B
PHP
<?php
|
|
|
|
namespace App\Features\Consoles\Services;
|
|
|
|
use App\Features\Consoles\Repositories\ConsoleRepository;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
|
|
class ConsoleService
|
|
{
|
|
public function __construct(
|
|
private ConsoleRepository $repository
|
|
) {}
|
|
|
|
public function getAll(): Collection
|
|
{
|
|
return $this->repository->getAll();
|
|
}
|
|
|
|
public function getBySlug(string $slug)
|
|
{
|
|
return $this->repository->getBySlug($slug);
|
|
}
|
|
}
|