In my base template of app.blade.php I do a simple check to see if the user is logged in. It looks like this:
@if (Sentinel::check())
<li><a href="members.aspx">Members</a></li>
@else
<li><a href="{{ url('/login') }}">Login</a></li>
<li><a href="{{ url('/register') }}">Register</a></li>
@endif
This triggers the Maximum function nesting level of '100' reached, aborting
. Any ideas why. I have the provider and facade defined properly in app.php. Like this:
'providers' => [
....
Cartalyst\Sentinel\Laravel\SentinelServiceProvider::class,
....
],
'aliases' => [
....
'Sentinel' => Cartalyst\Sentinel\Laravel\Facades\Sentinel::class,
....
],