/****************************** * Controller */ add( Input::make()->name('description')->label('Description') ); $form->add( BlockEditor::make() ); $form->addFieldset( \A17\Twill\Services\Forms\Fieldset::make() ->title(trans('twill-metadata::form.titles.fieldset')) ->id('metadata') ->fields([ \A17\Twill\Services\Forms\BladePartial::make()->view('twill-metadata::includes.metadata-fields') ->withAdditionalParams([ 'metadata_card_type_options' => config('metadata.card_type_options'), 'metadata_og_type_options' => config('metadata.opengraph_type_options'), ]), ]) ); return $form; } } /***************************************************** * Model */ [ 'default' => [ [ 'name' => 'default', 'ratio' => 16 / 9, ], ], ], ]; protected $fillable = [ 'published', 'title', 'description', 'position', ]; public $slugAttributes = [ 'title', ]; } /********************************** * Repository */ model = $model; } }