PHPackages                             joukhar/laravel-no-captcha-v3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. joukhar/laravel-no-captcha-v3

ActivePackage

joukhar/laravel-no-captcha-v3
=============================

Laravel no captcha v3 is a light weight package to add google recaptcha v3 to your sensitive pages in laravel applications

1.0(3y ago)2551[2 issues](https://github.com/joukhar/laravel-no-captcha-v3/issues)MITPHPPHP &gt;=7.4

Since Oct 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/joukhar/laravel-no-captcha-v3)[ Packagist](https://packagist.org/packages/joukhar/laravel-no-captcha-v3)[ RSS](/packages/joukhar-laravel-no-captcha-v3/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel No Captcha V3
=====================

[](#laravel-no-captcha-v3)

[![License](https://camo.githubusercontent.com/aae3dac48a1a5b72d2b7ba7b8d511c518b9a1b2a62b99becbd0c94fe1580ff48/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f756b6861722f6c61726176656c2d6e6f2d636170746368612d7633)](https://packagist.org/packages/joukhar/laravel-no-captcha-v3)[![Total Downloads](https://camo.githubusercontent.com/fb15e228534665b5d74d630813efe7f92efa640b1e4145a77fa76e7f5ad4bfd5/687474703a2f2f706f7365722e707567782e6f72672f6a6f756b6861722f6c61726176656c2d6e6f2d636170746368612d76332f646f776e6c6f616473)](https://packagist.org/packages/joukhar/laravel-no-captcha-v3)[![Isues](https://camo.githubusercontent.com/c6eb8ea26e731087e7447ec3fac9653fb1148bd692c2b7f6ba327131b849656d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6a6f756b6861722f6c61726176656c2d6e6f2d636170746368612d7633)](https://packagist.org/packages/joukhar/laravel-no-captcha-v3)

Installation
------------

[](#installation)

Add the new required package in your composer.json

```
"joukhar/laravel-no-captcha-v3": "^1.0"

```

Run `composer update` or `php composer.phar update`.

Or install directly via composer

```
composer require joukhar/laravel-no-captcha-v3

```

Requirements
------------

[](#requirements)

Require php &gt;= 7.4

Configuration
-------------

[](#configuration)

You can override the default options for The Package. First publish the configuration:

```
php artisan vendor:publish --provider="Joukhar\LaravelNoCaptchaV3\LaravelNoCaptchaV3" --tag=laravel-no-captcha-v3-config

```

then Add The following keys to .env file to turn on/off the recaptcha ex:

```
ENABLE_NO_CAPTCHA=on
GOOGLE_RECAPTCHA_SITE_KEY=
GOOGLE_RECAPTCHA_SECRET_KEY=

```

And Add your Recaptcha Credentials in the config file:

```
     'recaptcha' => [
        'site_key' => env('GOOGLE_RECAPTCHA_SITE_KEY'),
        'secret_key' => env('GOOGLE_RECAPTCHA_SECRET_KEY')
    ]
```

you can get them here

Views
-----

[](#views)

If You want to override the default views, you can publish them via:

```
php artisan vendor:publish --provider="Joukhar\LaravelNoCaptchaV3\LaravelNoCaptchaV3" --tag=laravel-no-captcha-v3-views

```

Usage
-----

[](#usage)

#### in the routes file (web.php)

[](#in-the-routes-file-webphp)

```
Route::post('submit-form', [TestController::class, 'handleFormSubmission']);
```

#### in the blade file

[](#in-the-blade-file)

```

    Document

        @csrf
        @include('NoCaptchaV3::recaptcha-input')

        Submit Form

    {{--  --------------------------------------------------------------------  --}}
    {{-- Your Scripts                                                           --}}
    {{--  --------------------------------------------------------------------  --}}
    @include('NoCaptchaV3::recaptcha-script')

```

#### in the controller which associated with previous blade file

[](#in-the-controller-which-associated-with-previous-blade-file)

```
