Laravel inertia base url

Laravel inertia base url

Goto To resources / view / app.blade.php file and add this code

  <script>     
       window.base_url = "{{ URL::To('/')}}"
  </script>

 

Goto any Inertia page and paste this code

{window.base_url} or only {base_url}

 

 

 

Leave a Reply