F
Filament16mo 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
krekas16mo ago
what exactly you want?
Sanchit Patil
Sanchit Patil16mo ago
public function getRouteKeyName() { return 'your_attribute'; } In your Conversation Model
krekas
krekas16mo ago
set it in the model
Want results from more Discord servers?
Add your server