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} You Might Also Like Fetch & Pass data from controller to inertia view September 9, 2023 Form handling by class component in inertia js September 17, 2023 Laravel Inertia js file upload September 13, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.