<?php
namespace App\Models\Admin;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class AdminHasRole extends Model
{
use HasFactory;
protected $guarded = ['id'];
protected $with = [
'role',
'permission',
];
public function role() {
return $this->belongsTo(AdminRole::class,'admin_role_id');
}
public function permission() {
return $this->belongsTo(AdminRolePermission::class,"admin_role_id","admin_role_id");
}
}
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.