Answer the question
In order to leave comments, you need to log in
How to disable Laravel error output?
This debug mode is already pissing me off. I disable it in app.php ( $debug = false ). But still errors are displayed, even the smallest ones.
I want the system itself to display these errors. Since the framework spoils everything.
<div class="admin">
@if(!$me->avatar)
<img class="avatar" src="\img\noavatar.png">
@endif
@if($me->avatar)
<img class="avatar" src="{{ $me->avatar }}">
@endif
<span class="name">{{ $me->name }}</span>
<i class="fa fa-cog"></i>
<i class="fa fa-bell"></i>
<i class="fa fa-sign-out"></i>
</div>
Answer the question
In order to leave comments, you need to log in
In .env APP_DEBUG=false
{{ $me->avatar or '/uploads/avatars/default.png' }}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question