You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
573 B

6 years ago
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Application extends Model
{
//
public function icon()
{
6 years ago
return $this->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()
{
6 years ago
$class = '\App\SupportedApps\\'.$this->name.'\\'.$this->name;
return $class;
}
6 years ago
6 years ago
}