定制 balt-technologies/laravel-icon-captcha 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

BALT-TECHNOLOGIES

LARAVEL - ICON - CAPTCHA

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固