V2, better design, more functionalities.
This commit is contained in:
@@ -16,4 +16,13 @@ class Education extends Model implements HasMedia
|
||||
'einddatum',
|
||||
'beschrijving',
|
||||
];
|
||||
|
||||
public function image()
|
||||
{
|
||||
return $this->getFirstMedia('image');
|
||||
}
|
||||
public function imageUrl()
|
||||
{
|
||||
return $this->image() ? $this->image()->getUrl() : null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user