Labels

//visibility
hideLabel()

//text slots
labelSuffix(string $word)
afterLabel(string $text)
afterLabel(string $text)
labelSuffix(string $string) //Example labelSuffix('(*)') for required fields

//styling
labelWidth(string $class) //Used only on inline forms. Default = sm:w-1/3
labelAlign(string $class)
labelClass(string $classes, $merge = true) //merge with default classes or not
labelWrapperClass(string $classes)

Example

Input::make('Label')
    ->afterLabel('After label')
    ->labelSuffix('suffix')
    ->rules('required|string'),

Last updated