pixelfed/app/Models/ImportPost.php

24 lines
432 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
2023-06-26 11:38:29 +00:00
use App\Status;
class ImportPost extends Model
{
use HasFactory;
protected $casts = [
'media' => 'array',
'creation_date' => 'datetime',
'metadata' => 'json'
];
2023-06-26 11:38:29 +00:00
public function status()
{
return $this->hasOne(Status::class, 'id', 'status_id');
}
}