Field for repeating groups of fields for MoonShine
composer require moonshine/layouts-field
use MoonShine\Layouts\Fields\Layouts;
Layouts::make('Content')
->addLayout('Contact information', 'contacts', [
Text::make('Name'),
Email::make('Email'),
]),
use MoonShine\Layouts\Casts\LayoutsCast;
class Article extends Model
{
protected $casts = [
'field' => LayoutsCast::class,
];
}