While attending Laracon India, many people approached me to ask how we handle the maintenance of all our Spatie packages. In this blog post, I'd like to cover some of our best tips to make a Laravel package easy to customize.

That would work, but now imagine that your package users want a second thing on the model to be made configurable.

When your package contains logic that you want your users to be able to customize, you could consider moving the logic to an action class.

In the sections above, we explored how to make it easy for package users to override logic provided by your package.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners