reorganize and cleanup php server code

This commit is contained in:
2026-02-06 13:12:38 +01:00
parent bf2f18f847
commit a6785f26db
3103 changed files with 494 additions and 351462 deletions
@@ -0,0 +1,33 @@
<?php
namespace Vanguard\Http\Requests\User;
use Vanguard\Http\Requests\Request;
use Vanguard\User;
class UpdateLoginDetailsRequest extends Request
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
$user = $this->getUserForUpdate();
return [
'email' => 'required|email|unique:users,email,' . $user->id,
'username' => 'nullable|unique:users,username,' . $user->id,
'password' => 'nullable|min:8|confirmed'
];
}
/**
* @return \Illuminate\Routing\Route|object|string
*/
protected function getUserForUpdate()
{
return $this->route('user');
}
}