In this chapter, we will cover the following topics:
Using policies and guard to protect user pages
Adding feature flags to hide features from users
Implementing Socialite to allow users to login with Facebook
Adding custom middleware to protect the user admin area
Using Laravel to set up a subscription site
Creating an interface for the user to manage subscriptions
Creating an admin interface for subscriptions