-
Notifications
You must be signed in to change notification settings - Fork 8
Models
You can specify the model settings using the web interface, or by creating a file with the name of the model under the {laravel-root}/scaffolder-settings/models directory.
You can use the validation rules that laravel provides, and the notation is the same, each rule must be separated by a pipe.
This package makes use of laravelcollective/html, this means that you can use all the controls documented there. This section depends on the theme package used and Scaffolder\Compilers\Support\InputTypeResolverTrait.
Example of controls currently supported:
- text
- number
- textarea
- date
- select:['value-1' => 'label-1', 'value-2' => 'label-2']
- selectRange:4:8
- checkbox
- radio:value-1:value-2
Here you can use the types defined by laravel, like integer, string and so on. Check out the list of all the column types.
With this field, you can set the modifiers, for instance, nullable or unsigned.
Set a foreign key field using the following notation: field:table:referential option