Created photo thumbnail view
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user