yandos666
Hiding relationManagers on view page (v2)
@wbzyfishy in the end i did a hack with checking the route name, if it was a view route I passed back an empty array. Not pretty but it worked
public static function getRelations(): array
{
if (Route::getCurrentRoute() && Route::getCurrentRoute()->getName() === 'filament.resources.events.view') {
return [];
}
return [
StatementsRelationManager::class,
AssetsRelationManager::class,
];
}
7 replies