Using PHP attributes feature #40319
-
Hi, #[Middleware(UserHasRole::class, ['blog_editor'])]
function method () {} What do you think ? |
Beta Was this translation helpful? Give feedback.
Answered by
SaeedDev94
Jan 12, 2022
Replies: 2 comments
-
I just published |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SaeedDev94
-
I think is a good idea , especially route register. |
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
I just published
Laravel #[Annotation]
package for this idea.