Support the ongoing development of Laravel.io →
Configuration Authentication Security
Last updated 2 years ago.
0

Auth::check is a method, not a constant, so you should have Auth::check() instead of Auth::check.

Last updated 2 years ago.
0

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?

Last updated 2 years ago.
0

Try adding this line as well.

app('exception')->setDebug(true);
Last updated 2 years ago.
0

I think that the problem you put your code into global.php. It involked before auth involked.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.