2
缺少參數1當我訪問我的Laravel項目時。它返回以下錯誤。如何解決它。Illuminate Support MessageBag :: has()
Missing argument 1 for Illuminate\Support\MessageBag::has(), called in /var/www/laravel/vendor/laravel/framework/src/Illuminate/Support/ViewErrorBag.php on line 92 and defined (View: /var/www/laravel/resources/views/welcome.blade.php)
在我的刀片代碼:
@if ($errors->has())
<div class="alert alert-danger">
@foreach ($errors->all() as $error)
{{ $error }}<br>
@endforeach
</div>
@endif
謝謝@MayankPandeyz – Karthikvijayaveni
聽起來不錯!繼續問好問題:) –