MoHoKh67
2 years ago
110
3
Laravel

How to make the Auth before everything?

Posted 2 years ago by MoHoKh67

Hi Everyone,

How can I make the whole website use authentication before all request. is there any way apart use

$this->middleware('auth');

for all constructors?? It will be annoying to write it for all controllers etc.

Basically I want make sure the users log in first and then use the website. First entry on all request must be login

Please sign in or create an account to participate in this conversation.