crudadmin/skeleton is the starting structure of CrudAdmin packages. It contains a service provider, config, routes, views, admin models, Vue components, translations and a test suite, wired the same way as the other packages.
Creating a package
Runcreate-package from the skeleton with the name of the new package:
dependencies/language-export, and every name is replaced:
The script also writes a
readme.md, runs git init -b main and installs the release hook of crudadmin-release when it is available.
Structure
The service provider extends
Admin\Providers\AdminPackageServiceProvider and declares the package in its properties, see Package service provider:
src/Providers/AppServiceProvider.php
Next steps
- Run
composer installandcomposer testin the new package. - Create the repository on GitHub, add it as
originand make the first commit. - Register the package on
packages.crudadmin.com, and allow the release token to publish it. - Release the first version, see Release.
main. Link it into a project with a composer path repository and dev-main:
composer.json
crudadmin/crudadmin. Format the code with vendor/bin/pint.