i want changes in route
In place of record i want custom attribute in table
public static function getPages(): array
{
return [ 'index' => Pages\ListConversations::route('/'), 'create' => Pages\CreateConversation::route('/create'), 'edit' => Pages\EditConversation::route('/{record}/edit'), 'view' => Pages\ViewConversation::route('/{record}'), ]; }
}
return [ 'index' => Pages\ListConversations::route('/'), 'create' => Pages\CreateConversation::route('/create'), 'edit' => Pages\EditConversation::route('/{record}/edit'), 'view' => Pages\ViewConversation::route('/{record}'), ]; }
}
3 Replies
what exactly you want?
public function getRouteKeyName()
{
return 'your_attribute';
}
In your Conversation Model
set it in the model