style fixing

This commit is contained in:
Roberto Guagliardo
2025-07-09 02:37:23 +02:00
parent ca5719474c
commit 195f20bb69
23 changed files with 68 additions and 51 deletions

View File

@@ -1,4 +1,5 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
@@ -6,7 +7,9 @@ use Illuminate\Database\Eloquent\Model;
class Personalia extends Model
{
protected $fillable = ['key', 'value', 'hidden', 'icon'];
protected $table = 'personalia';
protected $casts = [
'hidden' => 'boolean',
];
@@ -15,6 +18,7 @@ class Personalia extends Model
{
return $this->getFirstMedia('image');
}
public function imageUrl()
{
return $this->image() ? $this->image()->getUrl() : null;