I have simple message alerts on the page for various actions. It's look like this
@if(Session::has('message'))
<div class="alert alert-info"></div>
<hr />
@endif
From another thread here on SO which was resolved I've tried to count them
@if(count(Session::has('message')) > 0)
<div class="alert alert-info"></div>
<hr />
@endif
but still I get this error
Missing argument 1 for Illuminate\Support\MessageBag::has(), called in /var/www/html/site/vendor/laravel/framework/src/Illuminate/Support/ViewErrorBag.php on line 92
What is this means and what is this argument which is missing?
Update: As I said I have tried this and you can see it in my question. @if(count(Session::has('message')) > 0)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire