icon; } public function iconView() { return asset('storage/'.$this->icon); } public function defaultColour() { // check if light or dark if($this->tile_background == 'light') return '#fafbfc'; return '#161b1f'; } public function class() { $class = '\App\SupportedApps\\'.$this->name.'\\'.$this->name; return $class; } public static function applist() { $list = []; $all = self::all(); $list['null'] = 'None'; foreach($all as $app) { $list['\App\SupportedApps\\'.$app->name.'\\'.$app->name] = $app->name; } return $list; } }