diff --git a/app/Config/App.php b/app/Config/App.php index 8f7239a..3be8aa4 100644 --- a/app/Config/App.php +++ b/app/Config/App.php @@ -23,6 +23,13 @@ class App extends BaseConfig * * @var string */ + + public function __construct() + { + $protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === 0 ? 'https://' : 'http://'; + $this->baseURL = $protocol.$_SERVER['HTTP_HOST']; + } + public $baseURL = 'http://localhost:7072/'; /**