konekt/concord
Laravel extension for building modular applications using conventions on top of service providers. Manage in-app and external modules with isolation-friendly structure, version compatibility across Laravel releases, and tooling around module registration and organization.
Boxes (or modules) can add their custom Artisan (CLI) commands.
Their location should be the Console/Commands folder (following Laravel
defaults).
The commands need to be registered within the ModuleServiceProvider's register method:
Example:
namespace Konekt\AppShell\Providers;
use Konekt\AppShell\Console\Commands\ScaffoldCommand;
use Konekt\AppShell\Console\Commands\SuperCommand;
use Konekt\Concord\BaseBoxServiceProvider;
class ModuleServiceProvider extends BaseBoxServiceProvider
{
public function register()
{
parent::register();
$this->registerCommands();
}
protected function registerCommands()
{
if ($this->app->runningInConsole()) {
$this->commands([
ScaffoldCommand::class,
SuperCommand::class
]);
}
}
}
Next: Middleware »
How can I help you explore Laravel packages today?