0👍
Using cookies is a good way to achieve this.
Laravel provides functionalities, you can find it there: https://laravel.com/docs/5.6/requests#cookies
- [Vuejs]-Cannot read property during Mounted hook — how to set up?
- [Vuejs]-Accordion plus-minus icons on open/close – Vue2
0👍
I think you can use both of the solutions,
but what is the difference between (local storage/cookie)?
local storage:: local storage stored data in client side only and you can’t inject to it some options such as expiry date.
cookie: cookie stored data to the server by each request, and you can add the expiry date to it.
if you want to save it in both of side (client/server),
we have a package for does it, it’s implemented by vue and nuxt , you can use it,
Source:stackexchange.com