app/Http/Requests/ChangePasswordRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'current_password'      => 'required|passwordCheck',
            'new_password'          => 'required|string|min:8|confirmed',
        ];
    }
public function rules ( ) { return [ 'current_password' => 'required|passwordCheck' , 'new_password' => 'required|string|min:8|confirmed' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .