पेज · Laravilt
Dependencies
Depend on other packages and react to optional plugins.
Composer dependencies
Declare hard dependencies in the plugin's composer.json:
json
Optional plugins
Use the LaraviltPlugins facade to check whether another plugin is registered with the plugin manager:
php
LaraviltPlugins::get('comments') returns the plugin instance.
To check what is registered on a specific panel instead, use $panel->getPlugin('comments') or $panel->getPlugins().