Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

app_dev's avatar

I'm looking for some answers about the passport.

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?

0 likes
1 reply
LaraBABA's avatar
LaraBABA
Best Answer
Level 10

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.

Hope this helps.

1 like

Please or to participate in this conversation.