A
A
Archakov Dennis2015-06-13 14:18:14
Laravel
Archakov Dennis, 2015-06-13 14:18:14

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.
5724289.jpg
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>

Because there is no value in avatar , everything collapses. Although I have set conditions.
PS: The array has other values ​​besides this one.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Mostovoy, 2015-06-13
@archakov06

In .env APP_DEBUG=false

{{ $me->avatar or '/uploads/avatars/default.png' }}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question