Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larvatecn/laravel-captcha
Graphic verification code extension for Laravel. 适用于 Laravel 的验证码服务。
https://github.com/larvatecn/laravel-captcha
captcha laravel php
Last synced: about 1 month ago
JSON representation
Graphic verification code extension for Laravel. 适用于 Laravel 的验证码服务。
- Host: GitHub
- URL: https://github.com/larvatecn/laravel-captcha
- Owner: larvatecn
- License: other
- Created: 2021-03-06T09:53:59.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-08T09:06:41.000Z (over 3 years ago)
- Last Synced: 2024-04-19T01:44:09.550Z (8 months ago)
- Topics: captcha, laravel, php
- Language: PHP
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-captcha
适用于 Laravel 的验证码服务。## 环境需求
- PHP ^7.4 | ^8.0
## Installation
```bash
composer require larva/laravel-captcha -vv
```## 使用
路由
```php
GET /captcha
```
该路由输出的是图片,自行在表单组织。
表单中验证
```php
$validatedData = $request->validate([
'captcha' => 'required|string|min:6|max:7',
]);
```