/home/kueuepay/www/app/Models/UserNotification.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class UserNotification extends Model
{
    use HasFactory;

    protected $guarded  = ['id'];

    protected $casts        = [
        'id'                => 'integer',
        'user_id'           => 'integer',
        'transaction_id'    => 'integer',
        'details'           => 'object',
    ];

    public function scopeAuth($query){
        return $query->where('user_id',auth()->user()->id);
    }
}
Response Code

Response Codes

Kueue Pay API responses include standard HTTP status codes to indicate the success or failure of a request. Successful responses will have a status code of 200 OK, while various error conditions will be represented by different status codes along with error messages in the response body.