I want to use a passport for auth. I don't use vue. I am developing ui with Bootstrap 5. I use laravel routes and blade templates. What is a passport? How can I integrate it into my frontend ?
I want to do it; Registering users, logging in and out of the user interface. Assigning them roles. Is the passport for that? I do not expect html or scss codes from you.
I'm just looking for something like a backend tutorial where I can do these operations for Laravel.
For example, if I design a registration form for the front-end and send it to laravel via the post method, what should passport do for this job?
Laravel Passport is an OAuth 2.0 server implementation for API authentication using Laravel. Since tokens are generally used in API authentication, Laravel Passport provides an easy and secure way to implement token authorization on an OAuth 2.0 server.
If you use the API to POST, GET,PUT,DELETE data from your front end, you will need the passport to authenticate "who" is requesting the data. If you use Laravel "as is" without using the API, you won't need it because the authentication will be built in your PHP files.