call code iff user is logged in
Disable a route without having to comment out the entry in the routes file.
call code if user has right permission for resource
Use when you want to require the user to be logged in on a private server or the server is public.
call code if user is a server admin
get user if logged in
Return user based on request object