I would like to create an url as shown below
/domain/url=cloud_hosting&name=cloud_hosting
this is the href url that I use in my blade
<a href="{{ url('domain', ['url' => Request::segment(2), 'name' => $page_name]) }}">continue</a>
but that href url is generating different route
/domain/cloud_hosting/cloud_hosting
I have tried this one:
<a href="{{ route('domain') }}?url={{ Request::segment(2) }}&name={{ $page_name }}">Continue</a>
and that's working fine. But is there any other way which is nice and beautifull? Thank you
route('domain', [ 'url' => Request::segment(2), 'name' => $page_name ])might also workRoute::match(['get', 'post'], 'domain', 'Customer\DomainConfigurationControllers@index');/domain/cloud_hosting/cloud_hosting