F
Filament2y ago
dipu

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}'), ]; }
}
3 Replies
krekas
krekas2y ago
what exactly you want?
Sanchit Patil
Sanchit Patil2y ago
public function getRouteKeyName() { return 'your_attribute'; } In your Conversation Model
krekas
krekas2y ago
set it in the model

Did you find this page helpful?