Elektrine lite

โ† Feed

@michabbb@social.vivaldi.net

2026-03-31 14:32 UTC

#DelegatedTypes in #Laravel โ€” Smarter Alternative to STI #PHP #Eloquent #opensource #webdev ๐Ÿ—๏ธ Model class hierarchies via polymorphic relationships & delegation โ€” composition over inheritance, done right ๐Ÿงต๐Ÿ‘‡ ๐Ÿ”„ Each subtype keeps its own table while sharing a common root Entry model โ€” no more nullable column bloat like with STI ๐ŸŽฏ Comments, likes & reactions attach to the Entry โ€” one route, one controller, no endpoint explosion

Replies (0)

No replies.