Created
June 27, 2019 23:34
-
-
Save guiliredu/ba5a911055b6b975152a43782e6f1b31 to your computer and use it in GitHub Desktop.
Laravel recaptcha blade component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="input-captcha"> | |
<div class="g-recaptcha" data-sitekey="{{ config('app.recaptcha_key') }}"></div> | |
</div> | |
@push('scripts') | |
<script src='https://www.google.com/recaptcha/api.js'></script> | |
@endpush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
@yield('content') | |
@stack('scripts') | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('app.blade.php') | |
@section('content') | |
@include('input-recaptcha') | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can include the captcha in your template and the script will be pushed to the scripts stack.