fix route missing on database hosts

This commit is contained in:
Scai 2024-04-12 19:09:01 +03:00
parent af4d1d1fee
commit 4c2278a7f2
2 changed files with 5 additions and 1 deletions

View File

@ -72,7 +72,6 @@ class DatabaseHostResource extends Resource
Tables\Columns\TextColumn::make('host')
->searchable(),
Tables\Columns\TextColumn::make('port')
->numeric()
->sortable(),
Tables\Columns\TextColumn::make('username')
->searchable(),

View File

@ -65,6 +65,11 @@ class DatabaseHost extends Model
];
}
public function getRouteKeyName(): string
{
return 'id';
}
/**
* Gets the node associated with a database host.
*/