18 lines
328 B
PHP
18 lines
328 B
PHP
<?php
|
|
|
|
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);
|
|
}
|
|
}
|