-
-
Notifications
You must be signed in to change notification settings - Fork 86
Field Declaration
tanthammar edited this page Oct 5, 2020
·
2 revisions
All fields must use the make method.
The label to use for the form field, e.g. First Name.
The name to use for the form field. If null, it will use a snake cased $label.
Basic field example:
Input::make('First Name')->rules('required|min:2'),Relationship field example:
$brand_options = Brand::orderBy('name')->pluck('id', 'name');
Select::make('Brand', 'brand_id')
->options($brand_options)
->rules(['required', Rule::exists('brands', 'id')])- 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