mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
- AppServiceProvider is needs more work to wire in new services - todo: more dtos - todo: add unit tests - todo: add more integration tests
20 lines
521 B
PHP
20 lines
521 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use Laravel\Scout\Builder;
|
|
|
|
interface ScoutSearchService
|
|
{
|
|
/**
|
|
* Executes a search operation via Laravel Scout on the provided model class.
|
|
* @param object|string $modelClass
|
|
* @param string $q
|
|
* @param string|null $orderByField
|
|
* @param bool $sortDirectionDescending
|
|
* @return Builder
|
|
*/
|
|
public function search(string $q, ?string $orderByField = null,
|
|
bool $sortDirectionDescending = false): \Laravel\Scout\Builder;
|
|
}
|