We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c107dbf commit f627505Copy full SHA for f627505
app/Repositories/DatabaseRepository.php
@@ -231,6 +231,11 @@ public function delete($server)
231
*/
232
public function add(array $data)
233
{
234
+
235
+ if (isset($data['host'])) {
236
+ $data['host'] = gethostbyname($data['host']);
237
+ }
238
239
$validator = Validator::make($data, [
240
'name' => 'required|string|max:255',
241
'host' => 'required|ip|unique:database_servers,host',
0 commit comments