mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
clean up parent resource registration
This commit is contained in:
@@ -15,7 +15,7 @@ trait BelongsToParent
|
||||
*/
|
||||
protected static ?string $parentResource = null;
|
||||
|
||||
public static function getParentResource(): string | ParentResourceRegistration | null
|
||||
public static function getParentResource(): ?string
|
||||
{
|
||||
return static::$parentResource;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ trait HasNavigation
|
||||
return;
|
||||
}
|
||||
|
||||
if (static::getParentResource()) {
|
||||
if (static::getParentResourceRegistration()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user