relationship with trashed

When using relationship() how do we handle loading trashed items into the field?

excample:
                                CheckboxList::make('teams')
                                    ->label('Assigned Team(s)')
                                    ->required()
                                    ->relationship('teams', 'name',
                                        function (Builder $query) {
                                            return $query->select(['id', \DB::Raw('CONCAT(name, \' - \', custom_field) as name')]);
                                        }
                                    )
                                    ->reactive()
                                    ->columnSpanFull(),
Was this page helpful?