mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
611 B
PHTML
35 lines
611 B
PHTML
|
8 years ago
|
<?php
|
||
|
|
|
||
|
4 weeks ago
|
namespace App\Models;
|
||
|
8 years ago
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
8 years ago
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
8 years ago
|
|
||
|
|
class Avatar extends Model
|
||
|
|
{
|
||
|
8 years ago
|
use SoftDeletes;
|
||
|
8 years ago
|
|
||
|
4 years ago
|
protected $guarded = [];
|
||
|
8 years ago
|
|
||
|
7 months ago
|
protected function casts(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'deleted_at' => 'datetime',
|
||
|
|
'last_fetched_at' => 'datetime',
|
||
|
|
'last_processed_at' => 'datetime',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
6 years ago
|
protected $visible = [
|
||
|
|
'id',
|
||
|
|
'profile_id',
|
||
|
|
'media_path',
|
||
|
|
'size',
|
||
|
|
];
|
||
|
|
|
||
|
8 years ago
|
public function profile()
|
||
|
|
{
|
||
|
9 months ago
|
return $this->belongsTo(Profile::class);
|
||
|
8 years ago
|
}
|
||
|
8 years ago
|
}
|