title: How can I get data in local storage every login on laravel?
body: <p>I use laravel 5.3</p>
  
  <p>I set my data on the local storage javascript like this :</p>
  
  <pre><code>localStorage.setItem('storedData', JSON.stringify(data))
  </code></pre>
  
  <p>Every time user login, I want to add a condition. If the data stored in local storage exists then I want to retrieve that data and save it in the database</p>
  
  <p>How can I do that in a simple way?</p>
  
  <p>Whether it is using ajax?</p>