Update ServerController.php
This commit is contained in:
parent
84a214aedd
commit
574dd24871
|
@ -92,7 +92,7 @@ class ServerController extends Controller
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$server->delete();
|
$server->delete();
|
||||||
return redirect()->route('admin.servers.index')->with('success', 'server removed');
|
return redirect()->route('admin.servers.index')->with('success', 'Server removed');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return redirect()->route('admin.servers.index')->with('error', 'An exception has occurred while trying to remove a resource "' . $e->getMessage() . '"');
|
return redirect()->route('admin.servers.index')->with('error', 'An exception has occurred while trying to remove a resource "' . $e->getMessage() . '"');
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ class ServerController extends Controller
|
||||||
return redirect()->back()->with('error', $exception->getMessage());
|
return redirect()->back()->with('error', $exception->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->back()->with('success', 'server has been updated!');
|
return redirect()->back()->with('success', 'Server has been updated!');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue