Replies: 1 comment
-
Have you tried this ? Supplying Additional Context |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
Hi, I am using a resource policy for my controllers.
In each controller __construct I call the method authorizeResource passing the model and the parameter name that should came from request
public function __construct() { $this->authorizeResource(Phone::class, 'phone'); }
When it call a method that need the parameter from request it throws an error:
Steps To Reproduce:
Create a controller and a policy
In the controller construct call the method authorizeResource passing the model and the parameter name that came from request
Beta Was this translation helpful? Give feedback.
All reactions