diff --git a/app/Http/Controllers/Admin/ServersController.php b/app/Http/Controllers/Admin/ServersController.php index 741a61e4..8d527d1c 100644 --- a/app/Http/Controllers/Admin/ServersController.php +++ b/app/Http/Controllers/Admin/ServersController.php @@ -391,6 +391,7 @@ class ServersController extends Controller $server->mounts()->attach($mount_id); $this->alert->success('Mount was added successfully.')->flash(); + return redirect()->route('admin.servers.view.mounts', $server->id); } @@ -406,6 +407,7 @@ class ServersController extends Controller $server->mounts()->detach($mount_id); $this->alert->success('Mount was removed successfully.')->flash(); + return redirect()->route('admin.servers.view.mounts', $server->id); } } diff --git a/app/Repositories/Eloquent/MountRepository.php b/app/Repositories/Eloquent/MountRepository.php index d6055203..c75ba2aa 100644 --- a/app/Repositories/Eloquent/MountRepository.php +++ b/app/Repositories/Eloquent/MountRepository.php @@ -51,7 +51,7 @@ class MountRepository extends EloquentRepository } /** - * Return mounts available to a server. (ignoring if they are or are not mounted) + * Return mounts available to a server (ignoring if they are or are not mounted). * * @param Server $server * @return \Illuminate\Support\Collection diff --git a/database/migrations/2020_05_21_192756_add_mount_server_table.php b/database/migrations/2020_05_21_192756_add_mount_server_table.php index 3d79ab3f..682bd578 100644 --- a/database/migrations/2020_05_21_192756_add_mount_server_table.php +++ b/database/migrations/2020_05_21_192756_add_mount_server_table.php @@ -1,8 +1,8 @@