Is there any way to do some try/catch
in a view
of Laravel 4
?
How could I implement the syntax of blade
?
I would like something like:
@try
<div class="laravel test">
{{ $usuario->nome }}
</div>
@catch(Exception $e)
{{ $e->getMessage() }}
@endtry