update deploy
This commit is contained in:
25
app/Repositories/Contracts/FaqRepositoryInterface.php
Normal file
25
app/Repositories/Contracts/FaqRepositoryInterface.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Contracts;
|
||||
|
||||
use App\Enums\FaqCategory;
|
||||
use App\Models\Faq;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Pagination\LengthAwarePaginator;
|
||||
|
||||
/**
|
||||
* @extends BaseRepositoryInterface<Faq>
|
||||
*/
|
||||
interface FaqRepositoryInterface extends BaseRepositoryInterface
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed> $filters
|
||||
* @return LengthAwarePaginator<int, Faq>
|
||||
*/
|
||||
public function paginate(array $filters = [], int $perPage = 15): LengthAwarePaginator;
|
||||
|
||||
/**
|
||||
* @return Collection<int, Faq>
|
||||
*/
|
||||
public function getByCategory(FaqCategory $category): Collection;
|
||||
}
|
||||
Reference in New Issue
Block a user