Formatting API Responses with Laravel Resource Classes
How to produce clean API responses with Laravel Resource classes without leaking your database model directly to clients.
Blog
My writing, videos and posts across platforms on software architecture, PHP, DevOps and product development. (Page 24/32)
How to produce clean API responses with Laravel Resource classes without leaking your database model directly to clients.
What PHP 7.2 introduced and how the direction of the language has shaped my day-to-day coding habits.
Branching habits, merge strategies, and how to build a traceable change history with Git and pull requests.
What the mobile-first CSS approach is and how to use media queries to keep a single interface looking right across different screen sizes.
How to centralize authorization logic in Laravel using Gates and Policies, keeping 'who can do what' decisions clean and testable.
What Promises are in JavaScript, how to escape callback hell, and the essential patterns for chaining then/catch and managing async flow.