mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-05 22:34:51 +00:00
37 lines
642 B
PHP
37 lines
642 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Avatar extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
/**
|
|
* The attributes that should be mutated to dates.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'deleted_at' => 'datetime',
|
|
'last_fetched_at' => 'datetime',
|
|
'last_processed_at' => 'datetime'
|
|
];
|
|
|
|
protected $guarded = [];
|
|
|
|
protected $visible = [
|
|
'id',
|
|
'profile_id',
|
|
'media_path',
|
|
'size',
|
|
];
|
|
|
|
public function profile()
|
|
{
|
|
return $this->belongsTo(Profile::class);
|
|
}
|
|
}
|