PHP

Laravel Sanctum & Passport

Në shqip përdoret i njëjti emër.

ShpjegimiSQ

Sanctum jep autentikim të thjeshtë për SPA dhe aplikacione mobile me token-a API; Passport implementon OAuth2 të plotë kur të duhet. Për shumicën e projekteve mjafton Sanctum.

EnglishEN

Sanctum provides simple authentication for SPAs and mobile apps with API tokens; Passport implements full OAuth2 when you need it. For most projects Sanctum is enough.

Si ta mendosh

Si kartat e hyrjes për punonjësit e një ndërtese.

Lexoje në anglisht

Like the access cards for a building's staff.

Shembull kodiphp

Route::middleware('auth:sanctum')->get('/profili', fn (Request $r) => $r->user());

Terma të lidhur