Fields

Columns

All the columns are defined in an array of “columns” inheriting from the class Dysey\Apysey\Abstracts\Field.

Each class has a static makemethod in order to create them. This method accepts different parameters depending on it.

Usually the label is the first parameter, the database column second.

Text

Text::make('Example Label', 'exampleColumnName')

Slug

Relation_withis the name of the column linked with the slug.

Slug::make("Example Label", "exampleColumnName", "relation_with"),

BelongsTo

BelongsTo::make('Example Label', 'relation_model', 'relation_id', 'relation_resource', 'relation_display_column')

BelongsToMany

BelongsToMany::make('Example Label', 'relation_model', 'relation_resource', 'relation_display_column')

Boolean

Boolean::make('Example Label', 'exampleColumnName')

Date

Datetime

Email

File

Html

A Rich Text Editor (aka WYSIWYG).

Image

Number

It is possible to add additional methods to define the min, the maxand the step

Password

Textarea

Time

Color

Last updated