clem's avatar

clem liked a comment+100 XP

2mos ago

Nice breakdown 👏 I’ve found the actions pattern works great here too — small scopes on the model, then an action like GetRecentlyPublishedArticles to compose them. Keeps controllers lean, models clean, and logic reusable anywhere.

clem's avatar

clem wrote a comment+100 XP

2mos ago

Fully agree. Great videos Jeffrey! As a senior dev I haven't watched much Laracasts lately (I used to watch EVERY video 10+ years ago) but these AI workflow videos are right on point.

clem's avatar

clem liked a comment+100 XP

2mos ago

Could also remove the trim() as the middleware TrimStrings should already apply this on the request.