title: How can i get cookie value in laravel
body: <p>I am setting cookie in in blade file using javascript by below piece of code</p>
  
  <pre><code>function showPosition(position) {
      var lat=position.coords.latitude;
      var lng=position.coords.longitude;
      document.cookie="lat=" + lat;
      document.cookie="lng=" + lng;
      //var allcookies = document.cookie;
      //alert(allcookies);
      localStorage.setItem('latLng',latLng);
  }
  </code></pre>
  
  <p>and in model i try to get cookie </p>
  
  <pre><code>$lat = Cookie::get('lat');
  $lng = Cookie::get('lng');
  dd($lat);
  </code></pre>
  
  <p>but it shows me null.
  Any help please.</p>