Fix mounting behavior to work correctly when adding to a server
This commit is contained in:
parent
dbc9846320
commit
4213775b5c
3 changed files with 8 additions and 7 deletions
|
@ -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,
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue