koel/app/Http/Requests/API/ProfileUpdateRequest.php
2018-08-30 10:11:47 +07:00

17 lines
314 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,
];
}
}