add new search engine

This commit is contained in:
ludo
2024-01-31 23:45:58 +01:00
parent 8eb3104b2a
commit 067532b6fc
5 changed files with 59 additions and 1 deletions

View File

@@ -2,8 +2,14 @@
namespace App\Repositories\Shop;
use App\Models\Shop\Article;
class Searches
{
public static function search($query)
{
return Article::withAvailableOffers()->search($query)->get();
}
public static function getResults($options)
{
return Articles::getArticlesToSell($options);