laravel-enso/cli(新しいタブで開きます)
主要言語: PHP
Enso CLI for structure management
- star 数
- 10
- watcher 数
- 5
- fork 数
- 8
- issue 数
- 0
- 最終更新
- 2026/07/06
主要言語: PHP
Enso CLI for structure management
Cli is the interactive scaffolding tool for Laravel Enso resources and packages.
The package exposes the enso:cli command, keeps a restorable configuration session in cache, validates the configured model and menu structure before generation, and writes the backend, frontend, and package boilerplate needed for standard Enso CRUD modules.
It is intended to accelerate repetitive Enso structure work, not to replace manual refinement after the initial scaffold is created.
Install the package:
composer require laravel-enso/cli
If you want to publish the configuration presets used by the generator:
php artisan vendor:publish --tag=cli-config
The package automatically:
enso:cli Artisan commandconfig/enso/structuresStart the interactive generator:
php artisan enso:cli
The command lets you configure these sections before generation:
ModelPermission GroupPermissionsMenuFilesPackageWhen generation succeeds, the package clears the cached session and, when needed, prints the API route include that must be added to the host application's routes/api.php.
Validation can be toggled off temporarily from the command menu, but the intended workflow is to keep it enabled and fix the reported configuration errors before generating files.
enso:cliPublished under config/enso/structures:
model.phpmenu.phppermissions.phppackage.phpparams.phpfiles.phppermissionGroup.phpDepending on the selected file set, the generator can write:
Built-in validation covers:
has_children is enabledRequired Enso packages:
laravel-enso/core ↗laravel-enso/helpers ↗laravel-enso/menus ↗laravel-enso/permissions ↗laravel-enso/enums ↗laravel-enso/roles ↗are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!