You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class QueryBuilderService
{
public function __construct(RequestStack $requestStack)
{
$this->requestStack = $requestStack;
}
public function query($model)
{
$illuminateRequest = \Illuminate\Http\Request::createFromBase($this->requestStack->getCurrentRequest());
return Spatie\QueryBuilder\QueryBuilder::for($model, $illuminateRequest);
}
}
Illuminate\Http\Request::get(): Argument #1 ($key) must be of type string, null given, called in /var/www/app/vendor/spatie/laravel-query-builder/src/QueryBuilderRequest.php on line 144
Is it possible to replace some of the configurations and untie some of the Laravel functionality ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, can i use that library in Symfony ? (but with eloquent https://github.com/wouterj/WouterJEloquentBundle/tree/2.x )
i tried create Decorator Service with follow code
added in service.yaml
and in my Controller
But this doesnt work and i had next error
Illuminate\Http\Request::get(): Argument #1 ($key) must be of type string, null given, called in /var/www/app/vendor/spatie/laravel-query-builder/src/QueryBuilderRequest.php on line 144
Is it possible to replace some of the configurations and untie some of the Laravel functionality ?
Beta Was this translation helpful? Give feedback.
All reactions