I have a custom helper and a config, I can get the value but when I try the isset() it's not working and it shows me like this
and this is the content of customer helper: app\helper\LmsHelper.php
class LmsHelper
{
private static $host;
private static $api_key;
private static $api_version;
private static $use_ssl;
private static $debug;
private static $port;
public function __construct() {
self::$host = Config::get('lms.host');
self::$api_key = Config::get('lms.api_key');
self::$api_version = Config::get('lms.api_version');
self::$use_ssl = Config::get('lms.use_ssl');
self::$debug = isset(Config::get('lms.debug')) ? Config::get('lms.debug') : false;
if (isset(Config::get('lms.port'))) {
self::$port = Config::get('lms.port');
} else {
self::$port = self::$use_ssl ? 443 : 80;
}
}
}
and app\config\lms.php
<?php
return array(
'host' => 'www.themartialarts.university',
'api_key' => '6027-178512-e272b9afac4763199fa8d79e4bc0dcb39a378658',
'api_version' => '1',
'use_ssl' => true,
);
any idea what other method I can do? cause this is from normal PHP and I convert it into Laravel.