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

pant's avatar
Level 1

API first development strategy

Hi guys.. I am really new to laravel and i have to figure out some thinks. I work in a project in laravel 4.2 for now. The previous developer that he start the implementation of the project follow the api first development strategy. So he has separate the project in 2 different directories. The first directory is that the front end developer works at. That directory seems to have a laravel installation. The second directory is that the back end developer should work. This directory also seems to have a laravel installation. In those directories there is all the application structure of laravel. So i have a folder for controllers, routes etc. at both directories. From the first directory that front end developer work there is a class with a function post that sends data and a function get. Also i have see that the names of the controllers and some functions inside them are the same at the directories.

My problem is that i cant understand what i must do to write something in my database. Should i have for example the same controllers and function at those directories??? Should i have for example the function postWhatEver() to the front and the getWhatEver to the back??? How can i handle that strategy??? Is there any link or documentation ???

Thanks and sorry for my poor english

0 likes
0 replies

Please or to participate in this conversation.