TidingHasReport.php
577 Bytes
<?php
namespace App\Models;
use App\Support\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class TidingHasReport extends Model
{
protected $table = 'tidings_has_reports';
protected $guarded = [];
protected $casts = ['type' => 'int', 'status' => 'int'];
/**
* @return BelongsTo
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class, 'user_id')->withTrashed();
}
public function person(): BelongsTo
{
return $this->belongsTo(User::class, 'person_id')->withTrashed();
}
}