DEV Community

Discussion on: Laravel Jetstream vs Breeze vs Laravel/ui

Collapse
 
sahilofficial671 profile image
Sahil Bhatia

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

Collapse
 
islamyearul profile image
Md Yearul Islam

I appreciate your short definition. can you please definite Breeze Jetstream?

Collapse
 
babyluke0 profile image
BabyLuke0

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