for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
if (!function_exists('locale_route')) {
/**
* Generate the URL to given locale and route name.
*
* @param string $locale
* @param string $name
* @param array $parameters
* @param bool $absolute
* @return string
*/
function locale_route($locale = null, $name = null, $parameters = null, $absolute = true)
{
return app('locale-route-url')->localeRoute($locale, $name, $parameters, $absolute);
}
if (!function_exists('other_locale')) {
* Generate the URL for same route name but different locale
function other_locale($locale, $parameters = null, $absolute = true)
return app('locale-route-url')->otherLocale($locale, $parameters, $absolute);
if (!function_exists('other_route')) {
function other_route($name, $parameters = null, $absolute = true)
return app('locale-route-url')->otherRoute($name, $parameters, $absolute);