Created photo thumbnail view

This commit is contained in:
Deon George
2019-12-26 16:46:35 +11:00
parent 80a76559e5
commit 8c453d7b0e
3 changed files with 57 additions and 2 deletions

View File

@@ -260,6 +260,19 @@ abstract class Catalog extends Model
return $this->HTMLCheckbox('remove',$this->id,$this->remove);
}
/**
* Return the object type
* @return string
*/
public function getTypeAttribute(): string
{
switch(get_class($this)) {
case 'App\Models\Photo': return 'photo';
case 'App\Models\Video': return 'video';
default: return 'unknown';
}
}
/**
* Display the GPS coordinates
*/