. * * @link https://www.librenms.org * * @copyright 2018 Tony Murray * @author Tony Murray */ namespace App\Models; use LibreNMS\Util\StringHelpers; class Application extends DeviceRelatedModel { /** * Indicates if the model should be timestamped. * * @var bool */ public $timestamps = false; /** * The primary key column name. * * @var string */ protected $primaryKey = 'app_id'; // ---- Helper Functions ---- public function displayName() { return StringHelpers::niceCase($this->app_type); } public function getShowNameAttribute() { return StringHelpers::niceCase($this->app_type); } }