'How to work with Laravel and Vue to develop a system
I'm about to start developing a system and I'm going to use Laravel with Vue on it. I'm learning Laravel a little bit and time and I'm starting at Vue, so I'd like some tips:
What would be the best structure for the system:
- Laravel serving the data and templates and Vue doing only the part of the scripts on the front or;
- Vue doing all the visual part, both on the front and backend and doing an API in Laravel to process the data?
If you're going to separate Vue from Laravel, authentication would be on Laravel. In this case, would the frontend pages in Vue always be available to the user and only access to the data by the API would be authenticated? Or is it possible in the backend with Vue to do validation in the API?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
