backend/app/Console/Commands/ImportData.php
/**
     * Convert western number to persian numbers.
     *
     * @param  string $input
     * @return void
     */
Convert western number to persian numbers.
@param  string $input
@return void
Convert western number to persian numbers . @param string $input @return void
private function convertToPersian($input)
    {
        $persian = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
        $western = array('٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩');
        return str_replace($western, $persian, $input);
    }
private function convertToPersian ( $ input ) { $ persian = array ( '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' ) ; $ western = array ( '٠', ١',  ' ', ' ٣ , '٤ '  '٥' , '٦', ٧',  ' ', ' ٩ ); return str_replace ( $ western , $ persian , $ input ) ; }
Convert western number to persian numbers.
Convert western number to persian numbers .