src/Traits/LoadsTranslatedCachedRoutes.php 1 location
|
@@ 60-68 (lines=9) @@
|
| 57 |
|
* |
| 58 |
|
* @return string |
| 59 |
|
*/ |
| 60 |
|
protected function makeLocaleRoutesPath($locale = null) |
| 61 |
|
{ |
| 62 |
|
$path = $this->getDefaultCachedRoutePath(); |
| 63 |
|
if ($locale === null) { |
| 64 |
|
return $path; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
return substr($path, 0, -4).'_'.$locale.'.php'; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
/** |
| 71 |
|
* Returns the path to the standard cached routes file. |
src/Traits/TranslatedRouteCommandContext.php 1 location
|
@@ 50-59 (lines=10) @@
|
| 47 |
|
* |
| 48 |
|
* @return string |
| 49 |
|
*/ |
| 50 |
|
protected function makeLocaleRoutesPath($locale = null) |
| 51 |
|
{ |
| 52 |
|
$path = $this->laravel->getCachedRoutesPath(); |
| 53 |
|
if ($locale === null) { |
| 54 |
|
return $path; |
| 55 |
|
} |
| 56 |
|
$path = substr($path, 0, -4).'_'.$locale.'.php'; |
| 57 |
|
|
| 58 |
|
return $path; |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
/** |
| 62 |
|
* The env key that the forced locale for routing is stored in. |