Download the PHP package tanthammar/tall-blueprint-addon without Composer
On this page you can find all versions of the php package tanthammar/tall-blueprint-addon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package tall-blueprint-addon
TALL-forms Blueprint Addon
Auto generate TALL-forms for all models with the php artisan blueprint:build
command.
This plugin is based on Blueprint Nova Addon by Krishan König.
What you get
- Code: Consider the code you get as a mockup/draft. It won't work as is. You'll have to review and finalize the field declarations.
- Usability: You will get a single form component for each model.
It's up to you to split it in two components if you need separate forms for create/update forms.
- Tests: The Blueprint generated tests matches the controllers, not tall-forms. You will have to update them to Livewire syntax.
- Duplicated code:
Any Controller statements in yourdraft.yaml
related tostore
,update
anddestroy
, will be written to both Controllers and the Livewire form components. To avoid code duplication you can manually remove the code in Controllers after the build command. Another suggestion is to refactor intoActions
that you can use in both Controllers, and the Livewire form components.
Controller => TallForm, duplicated code position:
- Controller->store() => TallForm->onCreateModel()
- Controller->update() => TallForm->onUpdateModel()
- Controller->destroy() => TallForm->onDeleteModel()
- Sponsors: If you are a sponsor, the build command will generate sponsor fields instead of open source versions. Like
DatePicker
instead ofInput->type('datetime-local')
. See the configuration option below.
Early version!
- Relationship fields are outputted as
Repeaters
,Selects
orMultiSelect
. This will change when I create required fields in TALL-forms - Review generated code, it's not perfect :)
Requirements
- tall-forms >= v7.8.4 || v8
- blueprint >= 1.20
Installation
- Install Laravel, Livewire and TALL-forms
- Then install this package and Blueprint via composer:
Configuration
You may publish the configuration with the following command:
Sponsors - update config!
- If you are a sponsor of tall-forms, publish the config file and set
sponsor
totrue
.
The build command will generate sponsor fields instead of open source versions.
LikeDatePicker
instead ofInput->type('datetime-local')
. - If not, please sponsor the tall-forms package here: https://github.com/sponsors/tanthammar
Timestamp fields
To disable the generation of timestamp
fields for all forms set this option to false
.
Usage
Refer to Blueprint's Basic Usage
to get started. Afterwards you can run the blueprint:build
command to
generate Tall-forms automatically. Try this example draft.yaml
file.
Contribution
This is open source, I'll gladly accept every effort to contribute.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of tall-blueprint-addon with dependencies
laravel-shift/blueprint Version ^2.0
tanthammar/tall-forms Version ^8.0|dev-master|v9.x-dev