Laravel frontend and backend api

Hello everyone,

Busy creating a nice project so I learn and create a cool application.
Now I figured that I want to use an api for my application since I want to use a frontend framework.

In this project it is gonna be laravel + vuejs.
Now my main question is how to create a api for the backend ( which will need authentication ) and one for the frontend. ( that will only be able to update if something is created by that user. )

So for some people this is real easy, but for me it is kinda new and before I start the coding I want to get this right.

So I figured that my api url will be : http://website.com/api

This needs to be called from the frontend, but is it also possible to call it from the backend in the same way but change some parameters ?

This topic is to broad my understanding of an api application.

Best regards,
Wouter.

First thing to do is learn about REST.

Then you could look at tutorials about doing REST with Laravel.

Scott

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.