|
@@ -14,9 +14,21 @@ class Avatar extends Model
|
|
*
|
|
*
|
|
* @var array
|
|
* @var array
|
|
*/
|
|
*/
|
|
- protected $dates = ['deleted_at'];
|
|
|
|
|
|
+ protected $dates = [
|
|
|
|
+ 'deleted_at',
|
|
|
|
+ 'last_fetched_at',
|
|
|
|
+ 'last_processed_at'
|
|
|
|
+ ];
|
|
|
|
+
|
|
protected $fillable = ['profile_id'];
|
|
protected $fillable = ['profile_id'];
|
|
|
|
|
|
|
|
+ protected $visible = [
|
|
|
|
+ 'id',
|
|
|
|
+ 'profile_id',
|
|
|
|
+ 'media_path',
|
|
|
|
+ 'size',
|
|
|
|
+ ];
|
|
|
|
+
|
|
public function profile()
|
|
public function profile()
|
|
{
|
|
{
|
|
return $this->belongsTo(Profile::class);
|
|
return $this->belongsTo(Profile::class);
|