diff --git a/app/Http/Controllers/Admin/ServersController.php b/app/Http/Controllers/Admin/ServersController.php index a187c8922..a12d00444 100644 --- a/app/Http/Controllers/Admin/ServersController.php +++ b/app/Http/Controllers/Admin/ServersController.php @@ -392,10 +392,10 @@ class ServersController extends Controller * * @throws \Throwable */ - public function addMount(Server $server, Mount $mount) + public function addMount(Request $request, Server $server) { $mountServer = (new MountServer())->forceFill([ - 'mount_id' => $mount->id, + 'mount_id' => $request->input('mount_id'), 'server_id' => $server->id, ]); diff --git a/resources/views/admin/servers/view/mounts.blade.php b/resources/views/admin/servers/view/mounts.blade.php index a34823169..36ca98ddc 100644 --- a/resources/views/admin/servers/view/mounts.blade.php +++ b/resources/views/admin/servers/view/mounts.blade.php @@ -48,9 +48,9 @@