S
S
suhuxa12018-04-20 18:22:51
Laravel
suhuxa1, 2018-04-20 18:22:51

Why is laravel vue in the view folder?

Hello.
Recently I made friends with vue, I connect it by adding a script with cdn to the header, and now I decided to connect vue to laravel. After reading a little, I found that it was already connected out of the box, but the vue file, for some reason, is in the resourses folder, which usually contains site view files. I understand correctly that vue is a frontend, because. the appearance of the site, then why is it not in the public folder, where do we add scripts \ styles?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Camaro67, 2018-04-20
@suhuxa1

That's right, in resources are the sources of the front. Then you collect them, for example, with webpack, gulp, or any other assembler that is convenient for you. There is also a bundler in laravel out of the box - laravel mix (essentially a wrapper over webpack).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question