Files

31 lines
545 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class NotificationLog extends Model
{
protected $fillable = [
'title',
'body',
'image_url',
'deep_link',
'target_type',
'target_user_id',
'sender_id',
'status',
'error_message',
];
public function targetUser()
{
return $this->belongsTo(User::class, 'target_user_id');
}
public function sender()
{
return $this->belongsTo(User::class, 'sender_id');
}
}