Auth::check
is a method, not a constant, so you should have Auth::check()
instead of Auth::check
.
Yes I know, I must have mistyped.
But my question is: How can I leave the app.debug off by default and leave only when logged on?
Try adding this line as well.
app('exception')->setDebug(true);
I think that the problem you put your code into global.php. It involked before auth involked.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community