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} Cook with me Share this content Opens in a new window X Opens in a new window Facebook Opens in a new window WhatsApp You Might Also Like Deploy laravel inertia react on live server September 19, 2023 Form handling by class component in inertia js September 17, 2023 Laravel inertia routing September 8, 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.