koel/app/Repositories/Traits/Searchable.php

14 lines
241 B
PHP
Raw Normal View History

2020-12-23 12:03:22 +01:00
<?php
namespace App\Repositories\Traits;
2020-12-24 13:41:18 +01:00
use Laravel\Scout\Builder;
2020-12-23 12:03:22 +01:00
trait Searchable
{
2020-12-24 13:41:18 +01:00
public function search(string $keywords): Builder
{
return forward_static_call([$this->getModelClass(), 'search'], $keywords);
}
2020-12-23 12:03:22 +01:00
}