Files
monica/app/Http/Requests/PasswordChangeRequest.php
T
2017-12-18 09:28:34 -05:00

30 lines
530 B
PHP

<?php
namespace App\Http\Requests;
class PasswordChangeRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'password_current' => 'required',
'password' => 'required|confirmed|min:6',
];
}
}