Auto Convert all Arabic numbers input to English Numbers For Laravel framework & nova
outhebox/laravel-fix-arabic-numbers is a Laravel package for auto convert all arabic numbers input to english numbers for laravel framework & nova.
It currently has 0 GitHub stars and 53 downloads on Packagist (latest version v1.0).
Install it with composer require outhebox/laravel-fix-arabic-numbers.
Discover more Laravel packages by outhebox
or browse all Laravel packages to compare alternatives.
Last updated
This package allows you to auto fix Arabic numbers form inputs.
This package can be used in Laravel 5.4 and up.
You can install the package via composer:
composer require outhebox/laravel-fix-arabic-numbers
In app/Http/Kernel.php, register the middleware:
protected $middleware = [
//...
\OutheBox\FixArabicNumbers\Http\Middleware\FixArabicNumbers::class,
]
In bootstrap/app.php, register the middleware:
$app->middleware([
\OutheBox\FixArabicNumbers\Http\Middleware\FixArabicNumbers::class,
]);
If you need to EXTEND the existing FixArabicNumbers middleware note that:
FixArabicNumbers middleware needs to extend the OutheBox\FixArabicNumbers\Http\Middleware\FixArabicNumbers middleware /**
* The attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
//
];
The MIT License (MIT). Please see License File for more information.