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

cookie_good's avatar

RESTful API

has anyone built a RESTful API out of Laravel and used it to provide back end support to a mobile app? If so, how is it working for you?

Do you use it to log in the users phone app?

Do you use it for what you would normally use straight up mySql for on a Web app?

New to mobile apps, so any advice would be appreciated.

0 likes
3 replies
teos_97's avatar

I am not an expert but Restful api can be built with laravel. Afteral Restrul its just a set of rules for your endpoints. As for the authentication with mobile devices I have seen people suggest Laravel Passport.

1 like
Tippin's avatar
Tippin
Best Answer
Level 13

@cookie_good I use Passport to provide our mobile app with API, as well as utilizing their web token to allow the web app to consume parts of the same API endpoints. So far it has been working out great! Just alot to figure out one piece at a time. Passport is also handy if you do need to open parts of your API to 3rd parties, or separate apps you may be working on. I do not have experience using AirLock yet, but I hear it can also be useful if you do not need all the options passport provides.

1 like
martinbean's avatar

@cookie_good Yes. Lots of people will have built an API in Laravel to be consumed by mobile apps. You can then use something like Passport to authenticate users in your mobile app against your API.

1 like

Please or to participate in this conversation.