koel/app/Http/Requests/API/ProfileUpdateRequest.php
2020-12-22 21:11:22 +01:00

18 lines
349 B
PHP

<?php
namespace App\Http\Requests\API;
/**
* @property string $password
*/
class ProfileUpdateRequest extends Request
{
/** @return array<mixed> */
public function rules(): array
{
return [
'name' => 'required',
'email' => 'required|email|unique:users,email,' . auth()->user()->id,
];
}
}