style fixing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user