Check if Visitor show logon button
I believe you'll want something like this...

{% if currentUser %}
    &lt;a href="{{ url('logout') }}"&gt;Logout&lt;/a&gt;
{% else %}
    &lt;a href="{{ url('login') }}"&gt;Login&lt;/a&gt;
{% endif %}