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

ddoser020's avatar

try to build a laravel api and vuejs

I will try to be straight to the Point where my frustrations begin .

I trying to build an app with laravel as an Api and Separate Vuejs front end.

All i know is to write basic Crud and protect it with Middleware and use validation and some sql relations ,

1 - what the api will Handle more Than the crud , auth , validation ? and what will vuejs hundle ?

2 - Is it worth to separate vue from laravel on just website will present Information ? or it will work the same in both situations ?

3 - i am familiar with Repository Design Pattern and make code reusable will effect the performance ?

4 - based on your experience guys what the points should be protected for any webapp .

5 - last one , deployment is scares me because i dont know anything about it and really need some good tutorial to help me and based on your experience what the points (when i learn deployment of course ) should i care about

this is how frustrated i am, in fact i have more questions but this will help,put any advice for me really will appreciate the help

0 likes
2 replies
skeith22's avatar

hey @ddoser020, I'll try to answer your questions.

  1. I think that is very clear already for the dev? Backend and Frontend are already separated and thus should focus on their part, like Backend should handle Authentication, APIs, Security, Validation, and etc. While Frontend focuses on UI and UX, while frontend should also take into consideration how it calls API cause that would affect your performance too. honestly, this is a long discussion regarding this.

  2. That depends on what is the requirement of your application, weight the pros and cons of it. Do you really need it to be SPA if all it does is just present information? What kind of data/information will it present? only you know that answer to that one. but to give you an answer you should go with Larave and Vue, practice your skill while developing simple applications. FYI I use Laravel + Vue NOT Laravel and Vue. There's a difference in both. The one you mentioned is Laravel and Vue though.

  3. It doesn't affect performance but it does affect how scalable, maintainable, flexible, reusable, and robust your code is, thus resulting in faster development time and it's easier to scale, maintain, reuse, and extend.

  4. Just make sure your API is implemented properly to avoid security risks, it goes the same for your frontend too. Handle sensitive information properly in your frontend side. give only what your frontend really needs.

  5. Don't be afraid of deployments, deploying your backend and frontend isn't that hard if you're using services. I'm assuming you would use a service or something. BUT handling everything like the server, installing the stack and configuring everything that is needed, and then deploying your application is a different story though. that's a whole lot of things to learn my friend. That's for a DevOp job already.

I prefer not to worry about that now and focus on developing your application, then just worry about it if you're really going to deploy it in the future.

1 like
ddoser020's avatar

thankyou for replying ,

i meant what else could api handle beside auth and validation and security , if i want to create cart to add stuff in it and sum the prices who will handle the logic here ? because vue can do it but i cant imagine what will happen

it will be like e-commerce but not for sell just informative about price and attribute of the product and i will use Google AdSense in future

i will worry about the development phase and then worry about devops appreciate the advice

Please or to participate in this conversation.