3 ms·
The idea was that a controller is instantiated per request, so constructor and then your method, index / post / list / ... You could use your constructor as a
by OptionOfT 2y ago
The idea was that a controller is instantiated per request, so constructor and then your method, index / post / list / ...
You could use your constructor as a shared place to set up the requirements for your method.