पेज · Laravilt
Commands
Generate and register Artisan commands in a plugin.
bash
The command is created in src/Commands/. Every generated plugin also includes an install command.
Install command example
php
Registering commands
Register commands in the plugin's service provider:
php
The HasCommands trait offers the same thing through pluginCommands([...]) and registerPluginCommands(). See Traits.