Extending
Extending
- Use plugins: Add features to your app with plugins: packages that bring their own routes, database tables, settings, commands, queue jobs, scheduled tasks or event listeners.
anetos addinstalls one with one command. The complete app isexamples/queue, which uses the Postmark plugin to stop emailing addresses that bounced. - Write a plugin: Package a feature so any Anetos app can add it with
anetos add: its routes, tables, settings, commands, queue jobs, scheduled tasks and event listeners. A plugin uses only the framework’s public packages, as an app does. The complete plugin isplugins/postmark, which receives Postmark’s webhooks and keeps a list of the addresses Postmark stopped sending to.