Hi, I have already created a simple login and register system by using simpleauth, but I did not manage to check whether a user logged in or not? Where should I put before() method, which consists Auth::check() to check it before each page loaded.
I think there is controller which is shared controller, but I did not figure out how it works? Thanks in advance.
Your controller should extend one of the base controllers, but at least \Controller. before() is just another method, so if you want to check in there, add it to your controller.