hi :)
Quick question:
I am currently watching a video course about Laravel, and the teacher said, everybody should follow these naming conventions when it comes to Routes:
index - Show all listings
show - Show single listing
create - Show form to create new listing
store - Store new listing
edit - Show form to edit listing
update - Update listing
destroy - Delete listing
However, I feel a bit uncomfortable with some of them.
Namely:
-
I would like to call "store" simply "save" instead.
-
Also, "destroy" is awkward to me, too. I would rather call it "delete"
-
And, instead of "create" I would like to call it "add"
QUESTION:
If an other programmer were to ever continue working on a project of mine, how bad would it make me look if I changed the naming conventions to what I wrote above?
Do such naming conventions even exist, or did the teacher just make it up?
I am willing to learn it the right way, however, if I could go with "save", "delete" and "add" instead of "store", "destroy" and "create", it would just come more natural to me.
Any suggestions?
Should I stick to the naming conventions the teacher in the YouTube video has laid out?
Or are his naming conventions just his opinion and I can use whatever makes me happy?
PS.: What other naming conventions should I know about? (e.g. Controllers should be singular and PascalCase, etc.?)
Best Regards,
Ronaldo