21 lines
511 B
PHP
21 lines
511 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Contracts;
|
|
|
|
use App\Models\Category;
|
|
use Illuminate\Pagination\LengthAwarePaginator;
|
|
|
|
/**
|
|
* @extends BaseRepositoryInterface<Category>
|
|
*/
|
|
interface CategoryRepositoryInterface extends BaseRepositoryInterface
|
|
{
|
|
public function findBySlug(string $slug): ?Category;
|
|
|
|
/**
|
|
* @param array<string, mixed> $filters
|
|
* @return LengthAwarePaginator<int, Category>
|
|
*/
|
|
public function paginate(array $filters = [], int $perPage = 15): LengthAwarePaginator;
|
|
}
|