I'm working on a small project using PHP and Laravel, I would like to create plugins system, so each user or a developer use my CMS for exemple can create a plugin, almost like wordpress, I would like to know from where i should start to make this feature ( plugins system ) or how it works.
CodePudding user response:
You have to use modules for your project and create modules for each part of your logic.
Recommended package: https://nwidart.com/laravel-modules/v6/introduction
CodePudding user response:
You can start by checking out composer
- a package loader for PHP (and Laravel uses it), and you can make a sort of Laravel 'plugin' as a composer package, but otherwise you're looking at a lot of events and callback hooks.