Multiple Relationships

Hi guys, is this relationship possible? I'm in my ProjectTask model, and want add sub tasks which are a few relationships down (via tasks) Forms\Components\Repeater::make('tasks.subtasks') ->relationship('task.subtasks') ->schema([ Forms\Components\TextInput::make('name')->required(), Forms\Components\Checkbox::make('is_done')->label('Completed'),
1 Reply
Dimitar
Dimitar2mo ago
It should be, if not, you should make a "subtasks " hasManyThrough relation in your main model and then you should be able to use it like this: Forms\Components\Repeater::make('subtasks')->relationship('subtasks')

Did you find this page helpful?