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