mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +00:00
18 lines
349 B
PHP
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,
|
|
];
|
|
}
|
|
}
|