balt-technologies/laravel-icon-captcha
Composer 安装命令:
composer create-project balt-technologies/laravel-icon-captcha
包简介
This is a simple but safe icon captcha for laravel
README 文档
README
Laravel Icon Captcha
This is a simple but safe turing test for your laravel application.
- Simple, fast turing test
- Without collecting any data of the user
- Customizeable in color and size
You need a working Laravel 8 project to use this package without any errors.
How to install Laravel-Icon-Captcha
- After installing the package you need to set it up
Use the following command to get started:
php artisan vendor:publish
Now you have all the files you need published in your resource path, and you're ready to start.
How to use Laravel-Icon-Captcha
To use the graphical captcha, make sure to follow following steps:
Implement the app.js from the laravel-icon-captcha in your own app.js file. The easiest way is it to just require it.
In a usual Laravel-Folder Structure it should look like this.
require('../assets/vendor/laravel-icon-captcha/js/app')
make sure you have Vue installed and that you require it in your app.js also dont forget to create a new Vue Instance.
Now you are ready to compile your files with laravel mix:
npm run dev
###Implement it in the frontend
- Make sure you have following div surrounding the form where you want to use the captcha:
<div id="app"> Every other stuff </div>
- now you can just implement the vue component and the frontend part is done
<laravel-icon-captcha></laravel-icon-captcha>
###Implement it in the backend
- To add the validation rule, you simply add following line to your request validation:
'captcha' => ['required', new LaravelIconCaptchaRule];
That's it. You're ready to go.
You can simply customize your laravel-icon-captcha by editing the css file.
统计信息
- 总下载量: 358
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-01