1
0
mirror of https://github.com/flarum/core.git synced 2025-10-20 03:06:07 +02:00

Change base URL etc. in config.php file

This commit is contained in:
Franz Liedke
2015-08-27 00:47:54 +02:00
parent 49f20995b2
commit 9ec54ad892
10 changed files with 46 additions and 17 deletions

View File

@@ -30,4 +30,15 @@ class Core
return app('Flarum\Core\Settings\SettingsRepository')->get($key, $default);
}
public static function url($name = null)
{
$url = static::config('url');
if ($name) {
$url .= '/' . static::config("paths.$name");
}
return $url;
}
}