Event JSON
{
"id": "b035f0a9f23a9927eecd62d98f94730ef1d905fab17dafa6bd1eef77bafb0cdd",
"pubkey": "1690a0164b944483d0a7f8b00535094a241198b3fcba67a046106238ca4eee82",
"created_at": 1721277815,
"kind": 1,
"tags": [
[
"p",
"1e2637ad71db45378ad68094115f1128cd32bddb5d080ffd44f3518f4583cbfb"
],
[
"e",
"e1874c5ab950ff7a28d2621481143e27b59c7ca8b8066f84b4742bfbc85688d0",
"",
"root"
],
[
"e",
"683da5ece0fdf13209811bd09d7cec6edfcfdbd91aacca9a6a51437e0a482068",
"",
"reply"
],
[
"p",
"1690a0164b944483d0a7f8b00535094a241198b3fcba67a046106238ca4eee82"
],
[
"proxy",
"https://podcastindex.social/@ericpp/112805662903253222",
"web"
],
[
"proxy",
"https://podcastindex.social/users/ericpp/statuses/112805662903253222",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://podcastindex.social/users/ericpp/statuses/112805662903253222",
"pink.momostr"
],
[
"-"
]
],
"content": "I'm no expert, but I usually put most things into the controller.\n\nIn 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.\n\nFor 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.",
"sig": "dc30dd76d725f706d052561f119ca3b713f44d9750fa2e8cf6e7ac3103488992aeae1b278df609208cf6a206f16cf5cbde5c9333b561d92db7abf9fd838dc3ad"
}