legalworks/laravel-isbn-tools
Composer 安装命令:
composer require legalworks/laravel-isbn-tools
包简介
Casting and validating ISBN
README 文档
README
This package allows casting and validation of ISBN in Laravel Eloquent models, using the nicebooks/isbn-library.
Installation
Via Composer
$ composer require legalworks/laravel-isbn-tools
Usage
Casting
use Legalworks\IsbnTools\IsbnCast; protected $casts = [ 'isbn' => IsbnCast::class, ];
Validation
use Legalworks\IsbnTools\IsbnValidator; $request->validate([ 'isbn' => ['required', 'string', new IsbnValidator], ]);
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-23