Conditionally show Relationship (manager)

How would I be showing a relationship (manager) conditionally?
Solution:
```php public static function canViewForRecord(Model $ownerRecord, string $pageClass): bool { return true/false; }...
Jump to solution
2 Replies
Solution
ModestasV
ModestasV8mo ago
public static function canViewForRecord(Model $ownerRecord, string $pageClass): bool
{
return true/false;
}
public static function canViewForRecord(Model $ownerRecord, string $pageClass): bool
{
return true/false;
}
ModestasV
ModestasV8mo ago
Add this on your relation manager (child, not parent)
Want results from more Discord servers?
Add your server