I am unable to get relation in custom page

I am trying to get open new view page which i create in same resource as custom page and i am getting record but i want to get model relation also together with that record.
->actions([
// Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make('view')->label('View Order'),
])
->actions([
// Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make('view')->label('View Order'),
])
public static function getPages(): array
{
return [
'index' => Pages\ListOrders::route('/'),
'create' => Pages\CreateOrder::route('/create'),
'edit' => Pages\EditOrder::route('/{record}/edit'),
'view' => Pages\ViewOrder::route('/{record}'),
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListOrders::route('/'),
'create' => Pages\CreateOrder::route('/create'),
'edit' => Pages\EditOrder::route('/{record}/edit'),
'view' => Pages\ViewOrder::route('/{record}'),
];
}
and the custom page is attached as image. in Model data relation is blank.
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin