Add Larastan level 7 analysis
All checks were successful
Tests / Laravel tests (pull_request) Successful in 2m36s
All checks were successful
Tests / Laravel tests (pull_request) Successful in 2m36s
This commit is contained in:
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Personalia extends Model
|
||||
{
|
||||
/** @use HasFactory<\Database\Factories\PersonaliaFactory> */
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = ['key', 'value', 'hidden', 'icon'];
|
||||
@@ -16,14 +17,4 @@ class Personalia extends Model
|
||||
protected $casts = [
|
||||
'hidden' => 'boolean',
|
||||
];
|
||||
|
||||
public function image()
|
||||
{
|
||||
return $this->getFirstMedia('image');
|
||||
}
|
||||
|
||||
public function imageUrl()
|
||||
{
|
||||
return $this->image() ? $this->image()->getUrl() : null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user