Fixed a bug where you couldn't edit a user due to pterodactyl id
This commit is contained in:
parent
b32352e925
commit
0a7e000550
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue