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

shaungbhone's avatar

Laravel Json Api

Hello, guys. I can't write so many words! I have a problem with JSON API I don't understand what is used for? I can't find resources. Please, someone, explain to me. Thank you.

0 likes
11 replies
Sinnbeck's avatar

Which of the two words are you struggling with? Api or json?

shaungbhone's avatar

@Sinnbeck hmm. Sorry for my bad writing. Imagine I installed this package. But laravel has api.php right? So we don't need to install it. What is the purpose of this package? I don't understand. Under what circumstances should it be used?

Sinnbeck's avatar

@shaungbhone yeah you can make your own. The purpose of the package is that it handles the setup for you, by some definitions that you define. Thereby you are following a set standard instead of inventing your own

1 like
Sinnbeck's avatar

@shaungbhone you still need to set it up on your models, and set up validation and such. It is meant to speed up and simplify the process

2 likes
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@shaungbhone I haven't no, but I haven't had the need. I don't know your needs. If working in a team it might be good. Or if you need to set it up for alot of models. If it's just you and a few models, then you can probably make it manually faster

Please or to participate in this conversation.