Why Nostr? What is Njump?
2024-07-18 04:43:35
in reply to

Eric P on Nostr: I'm no expert, but I usually put most things into the controller. In my head, the ...

I'm no expert, but I usually put most things into the controller.

In my head, the model is for logic to store data and enforce business rules, the view is for logic needed to render the page, and the controller is the rest of the stuff to handle input and make the model and view talk to each other.

For API calls, I usually create a class and put the instantiation logic in the AppServiceProvider. You can then request singletons/instances from the provider in the rest of your code.
Author Public Key
npub1z6g2q9jtj3zg8598lzcq2dgffgjprx9nljax0gzxzp3r3jjwa6pq20amwj