add new search engine
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user