Fields

Textarea

The Textarea field includes all the basic methods

use MoonShine\Fields\Textarea;
 
//...
 
public function fields(): array
{
return [
Textarea::make('Text')
];
}
 
//...

Default value

You can use the default() method if you need to specify a default value for a field.

default(mixed $default)
use MoonShine\Fields\Textarea;
 
//...
 
public function fields(): array
{
return [
Textarea::make('Text')
->default('...')
];
}
 
//...