承接 ilyasapunkov/orchid-captcha 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ilyasapunkov/orchid-captcha

最新稳定版本:1.0.7

Composer 安装命令:

composer require ilyasapunkov/orchid-captcha

包简介

A custom captcha package for Laravel Orchid

README 文档

README

Orchid Captcha is a package that provides captcha functionality for the Orchid Platform in Laravel applications.

Installation

You can install the package via composer:

composer require ilyasapunkov/orchid-captcha

Publishing Assets

After installation, you need to publish the package assets. Run the following command:

php artisan vendor:publish --tag=orchid-captcha

This will publish the following files:

  • Configuration file: config/captcha.php
  • JavaScript file: public/vendor/orchid-captcha/js/captcha.js
  • Blade file:
    • resources/views/vendor/orchid-captcha/captcha-input.blade.php
    • resources/views/vendor/platform/auth/login.blade.php
  • Language files:
    • lang/en/captcha.php
    • lang/ru/captcha.php

Or publish separately:

php artisan vendor:publish --tag=orchid-captcha-config
php artisan vendor:publish --tag=orchid-captcha-assets
php artisan vendor:publish --tag=orchid-captcha-views
php artisan vendor:publish --tag=orchid-captcha-lang

After publishing, you can modify these files to customize the behavior and appearance of the captcha in your application.

Usage

To use the captcha in your Orchid screens, you can add the captcha field to your layout:

use IlyaSapunkov\OrchidCaptcha\Screen\Fields\Captcha;

// In your screen's layout method
public function layout(): array
{
    return [
        // ... other fields
        Captcha::make('captcha')
            ->title('Verify you are human'),
    ];
}

Don't forget to validate the captcha in your screen's method:

use IlyaSapunkov\OrchidCaptcha\Rules\CaptchaRule;

public function yourMethod(Request $request)
{
    $request->validate([
        'captcha' => ['required', new CaptchaRule()],
    ]);

    // ... rest of your method
}

统计信息

  • 总下载量: 120
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固