Minor improvement for the new Route::withLanguate() method

This commit is contained in:
Matias Griese
2019-09-18 12:42:05 +03:00
parent d1c069c2ee
commit 1f2363b623

View File

@@ -218,7 +218,7 @@ class Route
public function withLanguage($language)
{
$new = $this->copy();
$new->language = $language;
$new->language = $language ?? '';
return $new;
}