Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
.trash /
app /
Models /
Delete
Unzip
Name
Size
Permission
Date
Action
Ad.php
1.25
KB
-rw-r--r--
2025-09-15 01:20
AdView.php
970
B
-rw-r--r--
2025-09-15 01:22
Transaction.php
1.59
KB
-rw-r--r--
2025-09-15 01:22
User.php
1.99
KB
-rw-r--r--
2025-09-15 01:20
error_log
1.97
KB
-rw-r--r--
2025-09-16 08:59
Save
Rename
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Transaction extends Model { use HasFactory; protected $fillable = [ 'user_id', 'type', 'source', 'amount', 'meta', ]; protected $casts = [ 'amount' => 'decimal:2', 'meta' => 'array', ]; // Relationships public function user() { return $this->belongsTo(User::class); } // Scopes public function scopeCredits($query) { return $query->where('type', 'credit'); } public function scopeDebits($query) { return $query->where('type', 'debit'); } public function scopeBySource($query, $source) { return $query->where('source', $source); } public function scopeToday($query) { return $query->whereDate('created_at', today()); } // Helper methods public static function createCredit($userId, $amount, $source, $meta = null) { return static::create([ 'user_id' => $userId, 'type' => 'credit', 'source' => $source, 'amount' => $amount, 'meta' => $meta, ]); } public static function createDebit($userId, $amount, $source, $meta = null) { return static::create([ 'user_id' => $userId, 'type' => 'debit', 'source' => $source, 'amount' => $amount, 'meta' => $meta, ]); } }