app/Http/Requests/Admin/ChangePasswordRequest.php
/**
     * Filter the inputs from the request.
     *
     * @return void
     */
Filter the inputs from the request.
@return void
Filter the inputs from the request . @return void
public function sanitize()
    {
        $inputs = $this->all();
        foreach ($inputs as $field => $value) {
            $inputs[$field] = filter_var($value, FILTER_SANITIZE_STRING);
        }
        $this->replace($inputs);
    }
public function sanitize ( ) { $ inputs = $ this -> all ( ) ; foreach ( $ inputs as $ field => $ value ) { $ inputs [ $ field ] = filter_var ( $ value , FILTER_SANITIZE_STRING ) ; } $ this -> replace ( $ inputs ) ; }
Filter the inputs from the request.
Filter the inputs from the request .