Security and API
Part 6 of the Laravel course. CSRF tokens, password hashing, Sanctum API tokens, API resources, and gates and policies: who may do what, and what a JSON client sees.
The cards below open the lessons of the part, and the tree lists them in the reading order of the whole
course. The previous and the next page at the bottom move through that order.
6.1
CSRF
Stop cross-site request forgery with tokens, middleware, and headers.
Open
6.2
Hashing
Hash passwords with Hash make and verify them with Hash check.
Open
6.3
Sanctum tokens
Protect APIs with Sanctum personal access tokens and abilities.
Open
6.4
API resources
Shape clean JSON output with API resources and collections.
Open
6.5
Gates and policies
Control access with gates, policies, authorize calls, and Blade checks.
Open