One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
ggh_api
/
app
/
Models
/
View File Name :
Entitlement.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Concerns\HasUuids; class Entitlement extends Model { use HasUuids; public $incrementing = false; protected $keyType = 'string'; protected $fillable = [ 'user_id','type','course_id', 'provider','reference','amount','currency', 'starts_at','ends_at','status','meta', ]; protected $casts = [ 'amount' => 'decimal:2', 'starts_at' => 'datetime', 'ends_at' => 'datetime', 'meta' => 'array', ]; public function user() { return $this->belongsTo(User::class); } public function course() { return $this->belongsTo(\App\Models\lms\Course::class, 'course_id'); } public function scopeActive($q) { return $q->where('status', 'active') ->where(function ($w) { $w->whereNull('ends_at')->orWhere('ends_at', '>', now()); }); } }