proelitesunny
3 years ago
417
9
Laravel

Creating API using Laravel

Posted 3 years ago by proelitesunny

Actually, I'm little bit confused while using Laravel api route file. My question is-

If I need to access the data of my web site in other platform (like android app) that is made using laravel, then should I create a different route in api.php file.

If yes then I will be declaring two routes and controllers for each request, first in web.php and second in api.php. Is it correct??

Basically, I want to ask that how I can make an api, so that I can access the data in website as well as in other platforms?

I was searching for a good tutorial for this, but I didn't got a good one.

Please sign in or create an account to participate in this conversation.