Unused variables: $request
in AuthorizesRequests@authorizeResource
#48889
Unanswered
sneakylenny
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wondered what the variable
$request
param was used for in this method. After a little research with a mate it turns out it was left there unused after removing the$request
variable from the method in a41f1b3, which was 7 years ago at the time of writing this.VScode indicated it was unused which is how it stood out:
framework/src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php
Line 83 in 0fde761
I wonder how long it will stay there 😆
Beta Was this translation helpful? Give feedback.
All reactions