The Role creation helper creates a new/duplicate role everytime even if it is of the same name. However, this is not very helpful. Role names should be unique. Also, in a system where there are pre-created roles like 'admin', I think that findOrCreate works better. Please merge this if you think this is a legit argument.
The Role creation helper creates a new/duplicate role everytime even if it is of the same name. However, this is not very helpful. Role names should be unique. Also, in a system where there are pre-created roles like 'admin', I think that findOrCreate works better. Please merge this if you think this is a legit argument.