I am following a course in Laravel 5.5 + VueJS, and putting into practice what is being taught. However, it does not address authentication at the moment, and since I'm designing the entire project to load your content with VueJS, it's getting a little 'sad' on the page refresh in the login system.
So, temporarily, I did a small function in the beforeCreate method to send a request. However, in this way, all requests made by the user, make 2 requests: One to know if it is connected and the other of the user. I've been thinking of the best way to solve this, so I saw the possibility of entering a definite field in all the answers of requests with a boolean indicating if it is or not authenticated. But like the first, I think it's a beautiful POG.
So I ask, how to check if the user is authenticated in VueJS?