PHP code example of nguyentranchung / laravel-google-recaptcha
1. Go to this page and download the library: Download nguyentranchung/laravel-google-recaptcha library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nguyentranchung / laravel-google-recaptcha example snippets
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<div class="g-recaptcha" data-sitekey="{{ config('google-recaptcha.key') }}"></div>
class PostController extends Controller
{
public function store(Request $request)
{
$datas = $request->validate([
// ...
'g-recaptcha-response' => 'ray
*/
public function rules()
{
return [
// ...
'g-recaptcha-response' => '