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