Standard for controllers

Should I try to use only create, read, update and delete methods in my controllers or is it OK to use more?

I believe the standard is called RESTFul controllers.

I have never understood how this can be 100% possible because there are always scenarios which would involve the addition of other public methods except create, read, update and delete.

Are you building an API? :huh:

You’ll need to build on top of the standard CRUD operations in 99% of applications you build (in which case yes, you will more often than not have to write additional methods for your controllers).


Yes I agree, but is that standard practice? Would the best programmers in the world do that?


You may add any actions as you want.

This is the standard.