andriangungon
2/1/2018 - 2:47 PM

auto logout when page refreshed

probably because Auth is not defined.

<a class="nav-link" href="{{ Auth::logout() }}">Sign out</a>

change to:
<a class="nav-link" href="{{ URL::to('logout') }}">Sign out</a>