Fixed a bug where you couldn't edit a user due to pterodactyl id

This commit is contained in:
AVMG20 2021-06-10 14:37:48 +02:00
parent b32352e925
commit 0a7e000550

View file

@ -73,9 +73,10 @@ class UserController extends Controller
*/
public function update(Request $request, User $user)
{
$request->validate([
"name" => "required|string|min:4|max:30",
"pterodactyl_id" => "required|numeric|unique:users,pterodactyl_id,{$user->pterodactyl_id}",
"pterodactyl_id" => "required|numeric|unique:users,pterodactyl_id,{$user->id}",
"email" => "required|string|email",
"credits" => "required|numeric|min:0|max:1000000",
"server_limit" => "required|numeric|min:0|max:1000000",