V2, better design, more functionalities.

This commit is contained in:
Roberto Guagliardo
2025-07-09 01:22:29 +02:00
parent b324c030f4
commit 2c5d7102ab
87 changed files with 2273 additions and 178 deletions

View File

@@ -11,5 +11,14 @@ class Skill extends Model implements HasMedia
{
use InteractsWithMedia;
protected $fillable = ['title', 'description', 'rating'];
protected $fillable = ['title', 'description', 'rating', 'type'];
public function image()
{
return $this->getFirstMedia('image');
}
public function imageUrl()
{
return $this->image() ? $this->image()->getUrl() : null;
}
}