I got the error on IDE "Syntax error unexpected variable $_SERVER" and app "Parse error: syntax error, unexpected '$http_https' (T_VARIABLE), expecting function (T_FUNCTION) or const (T_CONST) in C:\laragon\www\laplacegroup\app\Config\App.php on line 30"
I am setting my base url in app.php to:
protected $host = $_SERVER['HTTP_HOST'];
$http_https = isset($_SERVER['HTTPS']) ? "https://" : "http://";
public $baseURL = $http_https . $host;
How can fix it