Eager Load Eager Load a Related Model to display in Listing Add Relation Display Column Actions @foreach ($this->withRelations as $i => $v) {{$v['relationName']}} {{$v['displayColumn']}} Delete @endforeach Eager Load Count Eager Load Count of a Related Model to display in Listing Add Relation Sortable Actions @foreach ($this->withCountRelations as $i => $v) {{$v['relationName']}} {{$v['isSortable'] ? 'Yes' : 'No'}} Delete @endforeach @if ($this->addFeature || $this->editFeature) Belongs To Many Display BelongsToMany Relation Field in Add and Edit Form @endif @if ($this->addFeature || $this->editFeature) Belongs To Display BelongsTo Relation Field in Add and Edit Form @endif
@if ($this->addFeature || $this->editFeature) Add a Belongs to Many Relationship
Select Relationship @if (Arr::exists($allRelations, 'belongsToMany')) @foreach ($allRelations['belongsToMany'] as $c) @endforeach @endif @error('belongsToManyRelation.name') {{$message}} @enderror
@if ($belongsToManyRelation['isValid'])
@if ($this->addFeature) Show in Add Form: @endif @if ($this->editFeature) Show in Edit Form: @endif Display as Multi-Select (Default is Checkboxes):
Display Column @if (Arr::exists($belongsToManyRelation, 'columns')) @foreach ($belongsToManyRelation['columns'] as $c) @endforeach @endif @error('belongsToManyRelation.displayColumn') {{$message}} @enderror
@endif
Cancel Save
Add a Belongs to Relationship
Select Relationship @if (Arr::exists($allRelations, 'belongsTo')) @foreach ($allRelations['belongsTo'] as $c) @endforeach @endif @error('belongsToRelation.name') {{$message}} @enderror
@if ($belongsToRelation['isValid'])
@if ($this->addFeature) Show in Add Form: @endif @if ($this->editFeature) Show in Edit Form: @endif
Display Column @if (Arr::exists($belongsToRelation, 'columns')) @foreach ($belongsToRelation['columns'] as $c) @endforeach @endif @error('belongsToRelation.displayColumn') {{$message}} @enderror
@endif
Cancel Save
@endif Eager Load a Relationship
Select Relationship @foreach ($allRelations as $allRelation) @foreach ($allRelation as $c) @endforeach @endforeach @error('withRelation.name') {{$message}} @enderror
@if ($withRelation['isValid'])
Display Column @if (Arr::exists($withRelation, 'columns')) @foreach ($withRelation['columns'] as $c) @endforeach @endif @error('withRelation.displayColumn') {{$message}} @enderror
@endif
Cancel Save
Eager Load Count
Select Relationship @foreach ($allRelations as $allRelation) @foreach ($allRelation as $c) @endforeach @endforeach @error('withCountRelation.name') {{$message}} @enderror
@if ($withCountRelation['isValid']) Make Heading Sortable @endif
Cancel Save