In Django, we use login_required() decoratir around the view, so that login is required to pass the request,, usually it redirects to login page?
How to do this in Masonite?
In Django, we use login_required() decoratir around the view, so that login is required to pass the request,, usually it redirects to login page?
How to do this in Masonite?
Route middleware can be used to only allow authenticated users to access a given route or view of course.
Could be written like this: