R

Ravina • 3.96K Points
Extraordinary

Q. How do you protect a Laravel route using authentication?

  • (A) Using the auth middleware
  • (B) Using a CSRF token
  • (C) Using a login route
  • (D) Using encryption
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category Laravel
  • Hashtags:

Explanation by: Ravina

To protect routes, apply the 'auth' middleware.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.