Answer the question
In order to leave comments, you need to log in
How can I use dynamic route in Laravel localization?
<?php
return array (
'Accept Cookies' => 'Accept Cookies',
'Cookie info' => 'Please be informed that we use cookies to enhance your user experience. For a complete overview of all cookies used, please see our <a href="{{ route('frontend.pages.cookies') }}" class="hero_side__link">Cookies Policy</a> and <a href="{{ route('frontend.pages.privacy') }}" class="hero_side__link">Privacy Policy</a>.',
);
Answer the question
In order to leave comments, you need to log in
return array (
'Accept Cookies' => 'Accept Cookies',
'Cookie info' => 'Please be informed that we use cookies to enhance your user experience.
For a complete overview of all cookies used, please see our
<a href="'.route('frontend.pages.cookies').'" class="hero_side__link">Cookies Policy</a>
and <a href="'.route('frontend.pages.privacy').'" class="hero_side__link">Privacy Policy</a>.',
);
return array (
'Cookie info' => 'Please be informed that we use cookies to enhance your user experience.
For a complete overview of all cookies used, please see our
<a href=":policy_url" class="hero_side__link">Cookies Policy</a>
and <a href=":privacy_url" class="hero_side__link">Privacy Policy</a>.',
);
{{! __('Cookie info', [
'policy_url' => route('frontend.pages.cookies'),
'privacy_url' => route('frontend.pages.privacy'),
]) !}}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question