Passport: --
Passport is for oAuth2 basically
Ex: like if you have seen any other application like "DEV" in which we are currently commenting if you click signup with GitHub it will take you to GitHub oAuth page where "Dev" with be authorize with a authentication token for nearly 1 year or so. So these releasing token for other application is can be done by Passport package in Laravel. (You can see github login in many other applications like Dev.to, Gitlab, etc.)
Sanctum: --
Sanctum is just for like having Laravel's cookie based authentication for API's which we already have for browser. It can be done with the help of laravel/ui, Fortify.
-- Conclusion: --
If you need token for single mobile app or SPA you should use Sanctum and if you need for more than one application like you should use Passport
i think no diff laravel ui or breeze except the css framework, else you can impement any function to your packages
i want to thank you How you explain passport and sanctum sir i was looking for this explaination for long
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Passport: --
Passport is for oAuth2 basically
Ex: like if you have seen any other application like "DEV" in which we are currently commenting if you click signup with GitHub it will take you to GitHub oAuth page where "Dev" with be authorize with a authentication token for nearly 1 year or so. So these releasing token for other application is can be done by Passport package in Laravel. (You can see github login in many other applications like Dev.to, Gitlab, etc.)
Sanctum: --
Sanctum is just for like having Laravel's cookie based authentication for API's which we already have for browser. It can be done with the help of laravel/ui, Fortify.
-- Conclusion: --
If you need token for single mobile app or SPA you should use Sanctum and if you need for more than one application like you should use Passport
I appreciate your short definition. can you please definite Breeze Jetstream?
i think no diff laravel ui or breeze except the css framework, else you can impement any function to your packages
i want to thank you How you explain passport and sanctum sir i was looking for this explaination for long