Open dillingham opened 2 years ago
Field::make('ID');
Field::make('Title');
Field::make('Code')->span('6');
Field::make('Slug')->span('6');
Field::make('Summary')->component('ui-textarea');
Field::make('Description')->component('ui-textarea');
Field::make('Brand', 'brand_id')
->component('ui-picker')
->formation(BrandFormation::class);
Field::make('Product Line', 'product_line_id')
->component('ui-picker')
->formation(ProductLineFormation::class)
->props(['parent' => 'brand_id']);
// change chain to parent
// 'items-display' => 'title',
// 'url' => route('admin.brand.index'),
// 'items-path' => 'brands',
// v-model="values.brand_id"
// name="brand_id"
// items-path="brands"
// :url="route('admin.brands.index')"
// item-display="title"
// [
// "sort": formation->sort,
// "trash": method_exists(formation->model, 'bootSoftDeleted'),
// "fields": formation->fieldsForRoute('index'),
^ that's really a prop of value right?
conditional fields: jet-form knows to hide inputs on change
dependant fields: jet-form knows to clear inputs on change and re-request options
maybe call it listen and give the entire form value
aggregate fields
aggregate functions automatically set `->on(['index', 'show');
or maybe
$is_input = false
to enforce incase ->on is called afterjson key value pair
array of objects / many json
nested object within array of objects
maybe clean to add a view method