Route group with prefix - generating a link
Greetings everyone,
I'm fairly new to the Laravel 5.4 and I'm not sure how to approach this issue. Basically I have a site that prefixes the route with the language slug, for instance, I have http://localhost/en/page-1 and http://localhost/pl/strona-1. Both of these urls point to the same controller and action (PagesController, action page()). I have created a middleware that looks at the segment(1) and sets proper locale. So let's say my current language is "en" (http://localhost/en/page-1) how do I generate a link in my blade template to that page? Is there a function for that? Can someone give me some examples?
Thanks,
Please or to participate in this conversation.