outhebox/laravel-fix-arabic-numbers
Composer 安装命令:
composer require outhebox/laravel-fix-arabic-numbers
包简介
Auto Convert all Arabic numbers input to English Numbers For Laravel framework & nova
README 文档
README
This package allows you to auto fix Arabic numbers form inputs.
Installation
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
Usage
Laravel
In app/Http/Kernel.php, register the middleware:
protected $middleware = [ //... \OutheBox\FixArabicNumbers\Http\Middleware\FixArabicNumbers::class, ]
Lumen
In bootstrap/app.php, register the middleware:
$app->middleware([ \OutheBox\FixArabicNumbers\Http\Middleware\FixArabicNumbers::class, ]);
Extending
If you need to EXTEND the existing FixArabicNumbers middleware note that:
- Your
FixArabicNumbersmiddleware needs to extend theOutheBox\FixArabicNumbers\Http\Middleware\FixArabicNumbersmiddleware - Add the fields you want to except form the middle ware to
/** * The attributes that should not be trimmed. * * @var array */ protected $except = [ // ];
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 53
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-15