-
-
Notifications
You must be signed in to change notification settings - Fork 86
Panel
tanthammar edited this page Jan 4, 2021
·
2 revisions
Please 💗 sponsor this package 🔗 in order to get access to Panels. The documentation is available in the sponsor repository.
Extends BaseField
You can use normal fields and panels in the same form
Set nested field colspan
- Apply
$field->stacked()
to all nested fields, can be overridden in each field.
- Apply
$field->inline()
to all nested fields, can be overridden in each field.
- Same as
Input
field.->icon()
,->tallIcon()
,->htmlIcon()
. - Read more on the
Input
page ->
Panel::make('Address')->fields([
Input::make('Street')->rules('required'),
Input::make('City')->rules('required'),
])->tallIcon('icons.add-outline')
->childColspan(6)
->stacked(),
Panel::make('Bio')->fields([
KeyVal::make('Personal')->fields([
Input::make('Profession')->help('Field help')->rules('required|in:sales,programmer,marketing'),
Input::make('Spouse')->rules('required'),
Input::make('Pet')->help('Field help')->rules('required'),
Input::make('Children')->rules('required'),
])->childColspan(6),
])->tallIcon('icons.add-outline'),
- Installation
- Requirements
- v5 Upgrade Guide
- v6 Upgrade Guide
- v7 Upgrade Guide
- Support
- Quickstart
- Manual installation
- Optional
- Form component
- Field
- Field types
- Example Form
- Blade Components
- Notifications