mirror of
https://github.com/koel/koel
synced 2024-12-24 03:23:06 +00:00
17 lines
315 B
PHP
17 lines
315 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\API;
|
|
|
|
/**
|
|
* @property string $password
|
|
*/
|
|
class ProfileUpdateRequest extends Request
|
|
{
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'name' => 'required',
|
|
'email' => 'required|email|unique:users,email,'.auth()->user()->id,
|
|
];
|
|
}
|
|
}
|