laravelapisingle-page-applicationsanctum

what the best starter kit suited with SPA and api with sanctum tokens?


I want to make a restful api using Laravel so I can use it with mobile application and SPA I also want to use sanctum to authenticate tokens. what is the most approperiate starter kit for my needs? I tried Breeze but it seems doesn't suit with sanctum.


Solution

  • Laravel's starter kits provide only front-end assets with already implemented auth. Jetstream uses Sanctum already. But in your case, I would just use Fortify that doesn't have any frontend if you are making API for mobile app.