jikan-rest/app/Services/ScoutSearchService.php
pushrbx a145f18bbd wip - major refactor
- AppServiceProvider is needs more work to wire in new services
- todo: more dtos
- todo: add unit tests
- todo: add more integration tests
2023-05-21 11:14:34 +01:00

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;
}