Redesign
This commit is contained in:
@@ -10,8 +10,12 @@ use Illuminate\Support\Facades\Log;
|
||||
|
||||
class IkeaProductsController extends Controller
|
||||
{
|
||||
public function search(Request $request, string $item, string $country = '')
|
||||
public function search(Request $request, string $field, string $text, ?string $country = '')
|
||||
{
|
||||
return IkeaProducts::search($item, $country);
|
||||
return IkeaProducts::search($field, $text, $country);
|
||||
}
|
||||
public function multi_search(Request $request, string $item, ?string $desc='', ?string $code='', ?string $country = '')
|
||||
{
|
||||
return IkeaProducts::search($item,$desc,$code,$country);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user