app/Http/Requests/Admin/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()
    {
        $this->sanitize();
        return [
            'old_password' => 'required|password',
            'password' => 'required|min:6|confirmed|different:old_password',
            'password_confirmation' => 'same:password'
        ];
    }
public function rules ( ) { $ this -> sanitize ( ) ; return [ 'old_password' => 'required|password' , 'password' => 'required|min:6|confirmed|different:old_password' , 'password_confirmation' => 'same:password' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .