瀏覽代碼

Update ServerController.php

AnonDev 3 年之前
父節點
當前提交
23424d4ed4
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/Http/Controllers/ServerController.php

+ 3 - 3
app/Http/Controllers/ServerController.php

@@ -138,7 +138,7 @@ class ServerController extends Controller
             }
         }
 
-        return redirect()->route('servers.index')->with('success', 'server created');
+        return redirect()->route('servers.index')->with('success', 'Server created');
     }
 
     /**
@@ -151,7 +151,7 @@ class ServerController extends Controller
         $server->delete();
 
         Auth::user()->notify(new ServerCreationError($server));
-        return redirect()->route('servers.index')->with('error', 'No allocations satisfying the requirements for automatic deployment were found.');
+        return redirect()->route('servers.index')->with('error', 'No allocations satisfying the requirements for automatic deployment on this node were found.');
     }
 
     /**
@@ -172,7 +172,7 @@ class ServerController extends Controller
     {
         try {
             $server->delete();
-            return redirect()->route('servers.index')->with('success', 'server removed');
+            return redirect()->route('servers.index')->with('success', 'Server removed');
         } catch (Exception $e) {
             return redirect()->route('servers.index')->with('error', 'An exception has occurred while trying to remove a resource "' . $e->getMessage() . '"');
         }