Fixed a bug where you couldn't edit a user due to pterodactyl id
This commit is contained in:
parent
b32352e925
commit
0a7e000550
|
@ -73,9 +73,10 @@ class UserController extends Controller
|
||||||
*/
|
*/
|
||||||
public function update(Request $request, User $user)
|
public function update(Request $request, User $user)
|
||||||
{
|
{
|
||||||
|
|
||||||
$request->validate([
|
$request->validate([
|
||||||
"name" => "required|string|min:4|max:30",
|
"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",
|
"email" => "required|string|email",
|
||||||
"credits" => "required|numeric|min:0|max:1000000",
|
"credits" => "required|numeric|min:0|max:1000000",
|
||||||
"server_limit" => "required|numeric|min:0|max:1000000",
|
"server_limit" => "required|numeric|min:0|max:1000000",
|
||||||
|
|
Loading…
Reference in a new issue