What is Laravel Sanctum used for?

What is Laravel Sanctum used for?

a) To manage database migrations
b) To manage API authentication and tokens
c) To optimize Blade views
d) To generate CSRF tokens

Answer:

b) To manage API authentication and tokens

Explanation:

Laravel Sanctum is used for API authentication, providing a simple solution for managing API tokens for single-page applications (SPAs) and mobile apps.

Reference:

Laravel Quiz – MCQ – Multiple Choice Questions

Scroll to Top