Update ServerController.php

This commit is contained in:
AnonDev 2021-11-07 17:58:01 +01:00 committed by GitHub
parent cf842055b7
commit 23424d4ed4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() . '"');
}