style fixing
This commit is contained in:
@@ -5,10 +5,13 @@ namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Spatie\MediaLibrary\HasMedia;
|
||||
use Spatie\MediaLibrary\InteractsWithMedia;
|
||||
|
||||
class Education extends Model implements HasMedia
|
||||
{
|
||||
use InteractsWithMedia;
|
||||
|
||||
protected $table = 'education';
|
||||
|
||||
protected $fillable = [
|
||||
'opleiding',
|
||||
'instituut',
|
||||
@@ -21,6 +24,7 @@ class Education extends Model implements HasMedia
|
||||
{
|
||||
return $this->getFirstMedia('image');
|
||||
}
|
||||
|
||||
public function imageUrl()
|
||||
{
|
||||
return $this->image() ? $this->image()->getUrl() : null;
|
||||
|
||||
Reference in New Issue
Block a user