Laravel 9 Update (#1413)

Update to Laravel 9 and PHP 8+

Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
This commit is contained in:
Nabeel S
2022-03-14 11:45:18 -04:00
committed by GitHub
parent 00bf18c225
commit 12848091a2
340 changed files with 6130 additions and 4502 deletions

View File

@@ -97,14 +97,11 @@
@endforeach
@endif
@if(config('captcha.enabled'))
<label for="g-recaptcha-response" class="control-label">@lang('auth.fillcaptcha')</label>
<div
class="input-group form-group-no-border {{ $errors->has('g-recaptcha-response') ? 'has-danger' : '' }}">
{!! NoCaptcha::display(config('captcha.attributes')) !!}
</div>
@if ($errors->has('g-recaptcha-response'))
<p class="text-danger">{{ $errors->first('g-recaptcha-response') }}</p>
@if($captcha['enabled'] === true)
<label for="h-captcha" class="control-label">@lang('auth.fillcaptcha')</label>
<div class="h-captcha" data-sitekey="{{ $captcha['site_key'] }}"></div>
@if ($errors->has('h-captcha-response'))
<p class="text-danger">{{ $errors->first('h-captcha-response') }}</p>
@endif
@endif
@@ -158,7 +155,9 @@
@endsection
@section('scripts')
{!! NoCaptcha::renderJs(config('app.locale')) !!}
@if ($captcha['enabled'])
<script src="https://hcaptcha.com/1/api.js" async defer></script>
@endif
<script>
$('#toc_accepted').click(function () {