Creating an Addon


Introduction

Creating an addon is the same for all addon types. Simply run the make:addon command and specify your addon's dot-namespace:

php artisan make:addon anomaly.module.help
Remember: Use your own vendor slug instead of anomaly!

The above command will generate an empty addon in the application's addon directory:

/addons/{application}/help-module

Shared Addons

You can add the --shared flag to the command to generate a shared addon:

php artisan make:addon anomaly.module.help --shared

The above command will generate the addon in the shared directory:

/addons/shared/help-module

Developing Features

After creating an addon the rest of development really depends on the type of addon you are creating.


No Comments


Leave a Comment