composer global require aw-studio/macrame-cliTo create the required files for a new CRUD run the following commands in both of the Macrame project folders:
macli make:crud fruit Within the Laravel Admin project folder this will create the files:
/admin
admin/Http/Controllers/FruitController.phpadmin/Http/Indexes/FruitIndex.phpadmin/Http/Resources/FruitResource.php
If these files don't already exist it will also try to create app files:
/app
app/Http/Controller/FruiController.phpapp/Http/Resources/FruitResource.phpapp/Models/Fruit.php
/database/migrations
...fruits_table.php
Leaving only the view part to be created by yourself.
Within the Admin Vue project folder the command will generate:
src/Pages/fruit/Index.vuesrc/Pages/fruit/Show.vuesrc/Pages/fruit/routes.tssrc/Pages/fruit/components/AddFruitModal.vuesrc/entities/fruit/api.tssrc/entities/fruit/crud.form.tssrc/entities/fruit/crud.index.tssrc/entities/fruit/types.ts
It will also edit src/entities/index.ts to register the entity files and src/plugins/router.ts to register the required routes.