Update ServerController.php

This commit is contained in:
AnonDev 2021-11-07 18:04:56 +01:00 committed by GitHub
parent 84a214aedd
commit 574dd24871
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ class ServerController extends Controller
{
try {
$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) {
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('success', 'server has been updated!');
return redirect()->back()->with('success', 'Server has been updated!');
}
/**