NotificationUser.php
647 Bytes
<?php
namespace App\Models;
use App\Support\Model;
use Awobaz\Compoships\Database\Eloquent\Relations\BelongsTo;
class NotificationUser extends Model
{
protected $table = 'notification_users';
protected $guarded = [];
/**
* @return \Awobaz\Compoships\Database\Eloquent\Relations\BelongsTo
*/
public function notification(): BelongsTo
{
return $this->belongsTo(Notification::class)->withTrashed();
}
/**
* @return \Awobaz\Compoships\Database\Eloquent\Relations\BelongsTo
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class)->withTrashed();
}
}