I
I
Igor2021-07-27 10:45:01
symfony
Igor, 2021-07-27 10:45:01

Why does Symfony recommend the ROLE_ prefix?

  • Each role must start with ROLE_ (otherwise things will not work as expected)
  • Other than the above rule, a role is just a string and you can invent whatever you need (like ROLE_PRODUCT_ADMIN).


What can go wrong if there is no prefix?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question