A
A
Andrei Popov2019-11-15 12:41:36
Vue.js
Andrei Popov, 2019-11-15 12:41:36

How and why is Vue.js related to Laravel?

1.
What is meant by "vue.js is part of laravel's core"?
What should I know about this as a vue.js developer and what should I consider when developing with laravel?
2.
I recently saw a project in which the frontend is in the resources folder, along with all the laravel folders, and the client is built not through vue-cli, but through laravel-mix.
Why would a frontender need to use laravel's built-in frontend builder when vue-cli has it?)
What are the benefits? It seems to me that this is a bad practice, because:
1) it interferes with the complete isolation of the front-end and back-end
2) if each back-end framework will provide its own assemblers for the front-end, the front-end will have to learn these extra technologies.
It seems to me more correct to write the frontend and backend in different folders, for example:
../frontend vue.js with the vue-cli assembler
../backend with the backend assembler, if required
3.
do backends use assemblers for backend files?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Anton, 2019-11-15
@andrei500

If Laravel is used only as a backend, it is not necessary to use its vue, you can put it in a separate folder and not use its front end features at all. If an MPA application is being made with primary rendering on the server using php and using vue only as part of the page (for example, complex forms, all sorts of baskets), then using mix is ​​quite convenient.

S
Sanes, 2019-11-15
@Sanes

Four ways to pass data from Laravel to Vue

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question