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:
11
src/Core.php
11
src/Core.php
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user