Update ServerController.php
This commit is contained in:
parent
cf842055b7
commit
23424d4ed4
|
@ -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();
|
$server->delete();
|
||||||
|
|
||||||
Auth::user()->notify(new ServerCreationError($server));
|
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 {
|
try {
|
||||||
$server->delete();
|
$server->delete();
|
||||||
return redirect()->route('servers.index')->with('success', 'server removed');
|
return redirect()->route('servers.index')->with('success', 'Server removed');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return redirect()->route('servers.index')->with('error', 'An exception has occurred while trying to remove a resource "' . $e->getMessage() . '"');
|
return redirect()->route('servers.index')->with('error', 'An exception has occurred while trying to remove a resource "' . $e->getMessage() . '"');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue