Return localhost instead of the contigured domain in virtual host
See original GitHub issueHi I tried this package, but during the implementation of the helper function route() it returns http://localhost/…
In my project I set up a Virtual Host which point to localhost address I’ve been working on, The OS I’m using currently is windows 10,
For Example
getData(route('ajax.get.event.list'), id, function(data) {
data = data[0];
data = editEventData(data);
...
the expected output should be
http://liz.dev/users/org-adviser/get/event
the return instead is
http://localhost/users/org-adviser/get/event
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Cannot Access Virtual Host Via Apache On Localhost
Hi Eric, all virtual hosts are already mapped in etc/hosts, domain is already defined, adding a search record to match makes no difference...
Read more >Apache VirtualHost and localhost - Stack Overflow
conf, go to folder xampFolder/apache/bin, Shift + right click, open a terminal command here, open XAMPP (as you usually do), start Apache, and ......
Read more >Return localhost instead of the contigured domain in virtual host
Hi I tried this package, but during the implementation of the helper function route() it returns http://localhost/.. In my project I set up...
Read more >VirtualHost Examples - Apache HTTP Server Version 2.4
Requests for any address not specified in one of the <VirtualHost> directives (such as localhost , for example) will go to the main...
Read more >Configure Virtual Hosts in an Environment - Bloomreach
The virtual hosts configuration is stored in the content repository and managed ... It configures the virtual host localhost for use in a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mattisbones @DanielCoulbourne I have the same problem in Laravel 5.6 and Ziggy 0.7.1.
What route function
{{ route('permissions.create') }}returns in blade:With Ziggy
route('permissions.create')in Vue component:I use
php artisan ziggy:generatewithout@routesblade directive and this method of using: https://github.com/tightenco/ziggy/issues/154#issuecomment-494563621Last part from my
ziggy.jsgenerated file:p.s. I can open a new issue if needed.
@mattstauffer That worked for me!
I was just wondering if this wouldn’t be better solved if the package were to detect the URL the same way Laravel does (as in Laravel’s route() facade, which never fails)