You should follow some courses on Laravel.
Here on Laracast, you have very good series to learn Laravel from scratch.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
/resources/shop?shop=1 -Hello. why is this shop parameter not available through the request in the resource? how to get it in the nova resource?
@websvb You can type-hint the request into any controller method in Nova just as in Laravel in general, and then the parameter should be available under $request->query('shop').
But it sounds like you’re trying to do something that’s a bad idea to begin with. What do you mean you want to get a URL parameter in the resource? Query parameters are business logic and belong in the controller layer, not in the model layer.
If you’re defining a PostResource to reflect posts, how are you intending a query parameter from the URL of the page the user is visiting to interact with any given post or its related resource?
Please or to participate in this conversation.