The model does not have a relationship named [team]

Hello all, how can I please fix this?
The model [App\Models\Backup] does not have a relationship named [team]. You can change the relationship being used by passing it to the [ownershipRelationship] argument of the [tenant()] method in configuration. You can change the relationship being used per-resource by setting it as the [$tenantOwnershipRelationshipName] static property on the [App\Filament\Resources\BackupResource] resource class.
The model [App\Models\Backup] does not have a relationship named [team]. You can change the relationship being used by passing it to the [ownershipRelationship] argument of the [tenant()] method in configuration. You can change the relationship being used per-resource by setting it as the [$tenantOwnershipRelationshipName] static property on the [App\Filament\Resources\BackupResource] resource class.
Solution:
add the team relationship to the back up model...
Jump to solution
2 Replies
Solution
toeknee
toeknee3mo ago
add the team relationship to the back up model...
Abdellah
AbdellahOP3mo ago
Thank you @toeknee
Want results from more Discord servers?
Add your server