Support the ongoing development of Laravel.io →
Authorization Authentication Database

hello there, I'm new to Laravel and I am creating an Uber like app with Api and I have an issue with authenticating users.

I'm not using default Users table but three tables : Drivers, Passengers and Admins.

on localhost/api/drivers people can register with email and password.

now I don't know how to login and authorize them ( I prefer JWT token ) for some other routes like /cars ( for adding their car ) .

I will be thankful if anyone could HELP ME .

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.