Nov 5, 2021
3
Level 1
Using request classes for authorizing every method of a controller?
Hi all,
I was wondering whether it is viable to use request classes for authorizing other methods than POST/PUT/PATCH actions. For example, make a IndexPostsRequest with an empty rules array and with a authorize() method that contains permission checking and stuff.
Or is this really not what it is meant for?
Please or to participate in this conversation.