Nuno Maduro on Nostr: here are two more tips about the action pattern in Laravel: - first, always use DB ...
here are two more tips about the action pattern in Laravel:
- first, always use DB transactions for your DB operations to keep the database consistent ✅
- second, using websockets? always "dispatch" an event after the transaction 🤌🏻
Published at
2024-08-08 12:25:50Event JSON
{
"id": "99e8a143b9c29948fadca8f51baaacd5e35556dffa451a23147970e073496fdb",
"pubkey": "e701351655361a7371d05878608ece8d562866d3f98ec056e1009a61a0c6b781",
"created_at": 1723119950,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/nunomaduro/statuses/112926389061434038",
"activitypub"
]
],
"content": "here are two more tips about the action pattern in Laravel:\n\n- first, always use DB transactions for your DB operations to keep the database consistent ✅\n\n- second, using websockets? always \"dispatch\" an event after the transaction 🤌🏻\n\nhttps://files.mastodon.social/media_attachments/files/112/926/388/906/571/770/original/0d3758d444cb3553.jpg",
"sig": "da70e1fceedae8dc92cc90b590fea9dc64e7c78c9cca504bf9fe3914a15de856bf1ee6fd73320bd9882b7d88feae54568802acf573c2cb85e569777614cb91c1"
}