Publishing Modules
Edit onAfter creating a module, you may want to make the module available to other developers. You can push your module to github or bitbucket and after that you can submit your module to the packagist website.
Follow these steps to publish your module:
- Create the module
- Push the module to github, bitbucket or gitlab.
- Submit your module to the packagist website. Submitting to packagist is very easy; just point packagist to your repository and then publish it.
Have Modules Be Installed In Modules Folder
There is also a way to have your modules be installed in the Modules/
directory automatically.
This is made possible by joshbrw/laravel-module-installer.
Simply require this package on your module, and set the type
key in the composer.json
file to
laravel-module
.
- Module Methods
- Module Resources