!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/vendor/diglactic/laravel-breadcrumbs/src/Exceptions/   drwxrwxrwx
Free 13.17 GB of 57.97 GB (22.73%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Diglactic\Breadcrumbs\Exceptions;

use 
Facade\IgnitionContracts\BaseSolution;
use 
Facade\IgnitionContracts\ProvidesSolution;
use 
Facade\IgnitionContracts\Solution;
use 
Illuminate\Support\Facades\Request;
use 
Illuminate\Support\Facades\Route;
use 
Illuminate\Support\Str;

/**
 * Exception that is thrown if the user attempts to generate breadcrumbs for a page that is not registered.
 */
class InvalidBreadcrumbException extends BaseException implements ProvidesSolution
{
    
/** @var string */
    
private $name;

    
/** @var bool */
    
private $isRouteBound false;

    public function 
__construct(string $name)
    {
        
parent::__construct("Breadcrumb not found with name \"{$name}\"");

        
$this->name $name;
    }

    public function 
setIsRouteBound(): void
    
{
        
$this->isRouteBound true;
    }

    public function 
getSolution(): Solution
    
{
        
// Determine the breadcrumbs file name
        
$files = (array)config('breadcrumbs.files');

        if (
count($files) === 1) {
            
$file Str::replaceFirst(base_path() . DIRECTORY_SEPARATOR''$files[0]);
        } else {
            
$file 'one of the files defined in config/breadcrumbs.php';
        }

        
// Determine the current route name
        
$route Route::current();
        
$routeName $route $route->getName() : null;
        if (
$routeName) {
            
$url "route('{$this->name}')";
        } else {
            
$url "url('" Request::path() . "')";
        }

        
$links = [];
        
$links['Defining breadcrumbs'] = 'https://github.com/diglactic/laravel-breadcrumbs#defining-breadcrumbs';

        if (
$this->isRouteBound) {
            
$links['Route-bound breadcrumbs'] = 'https://github.com/diglactic/laravel-breadcrumbs#route-bound-breadcrumbs';
        }

        
$links['Silencing breadcrumb exceptions'] = 'https://github.com/diglactic/laravel-breadcrumbs#route-binding-exceptions';
        
$links['Laravel Breadcrumbs documentation'] = 'https://github.com/diglactic/laravel-breadcrumbs';

        return 
BaseSolution::create("Add this to $file")
            ->
setSolutionDescription("
```php
Breadcrumbs::for('
{$this->name}', function (\$trail) {
    \$trail->push('Title Here', 
$url);
});
```"
)
            ->
setDocumentationLinks($links);
    }
}

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