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

@@ -22,13 +22,8 @@
{{-- Start of the required files in the head block --}}
<link href="{{ public_mix('/assets/global/css/vendor.css') }}" rel="stylesheet"/>
<style type="text/css">
@yield('css')
</style>
<script>
@yield('scripts_head')
</script>
@yield('css')
@yield('scripts_head')
{{-- End of the required stuff in the head block --}}
</head>

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 () {

View File

@@ -9,8 +9,10 @@
@if($file->description)
- {{$file->description}}
@endif
<span
style="margin-left: 20px">{{ $file->download_count.' '.trans_choice('common.download', $file->download_count) }}</span>
@if ($file->download_count > 0)
<span
style="margin-left: 20px">{{ $file->download_count.' '.trans_choice('common.download', $file->download_count) }}</span>
@endif
</li>
@endforeach
</ul>

View File

@@ -14,7 +14,7 @@
<p class="category">{{ $item->user->name_private }}
- {{ show_datetime($item->created_at) }}</p>
{{ $item->body }}
{!! $item->body !!}
@endforeach
</div>
</div>