!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/main_file/vendor/munafio/chatify/src/   drwxrwxr-x
Free 13.22 GB of 57.97 GB (22.81%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Chatify;

use 
Chatify\Console\InstallCommand;
use 
Chatify\Console\PublishCommand;
use 
Illuminate\Support\Facades\Route;
use 
Illuminate\Support\ServiceProvider;

class 
ChatifyServiceProvider extends ServiceProvider
{
    
/**
     * Register services.
     *
     * @return void
     */
    
public function register()
    {
        
app()->bind('ChatifyMessenger', function () {
            return new 
\Chatify\ChatifyMessenger;
        });
    }

    
/**
     * Bootstrap services.
     *
     * @return void
     */
    
public function boot()
    {
        
// Load Views, Migrations and Routes
        
$this->loadViewsFrom(__DIR__ '/views''Chatify');
        
$this->loadMigrationsFrom(__DIR__ '/database/migrations');
        
$this->loadRoutes();

        if (
$this->app->runningInConsole()) {
            
$this->commands([
                
InstallCommand::class,
                
PublishCommand::class,
            ]);
            
$this->setPublishes();
        }

    }

    
/**
     * Publishing the files that the user may override.
     *
     * @return void
     */
    
protected function setPublishes()
    {
        
// Load user's avatar folder from package's config
        
$userAvatarFolder json_decode(json_encode(include(__DIR__.'/config/chatify.php')))->user_avatar->folder;

        
// Config
        
$this->publishes([
            
__DIR__ '/config/chatify.php' => config_path('chatify.php')
        ], 
'chatify-config');

        
// Migrations
        
$this->publishes([
            
__DIR__ '/database/migrations/' => database_path('migrations')
        ], 
'chatify-migrations');

        
// Models
        
$isV8 explode('.',app()->version())[0] >= 8;
        
$this->publishes([
            
__DIR__ '/Models' => app_path($isV8 'Models' '')
        ], 
'chatify-models');

        
// Controllers
        
$this->publishes([
            
__DIR__ '/Http/Controllers' => app_path('Http/Controllers/vendor/Chatify')
        ], 
'chatify-controllers');

        
// Views
        
$this->publishes([
            
__DIR__ '/views' => resource_path('views/vendor/Chatify')
        ], 
'chatify-views');

        
// Assets
        
$this->publishes([
            
// CSS
            
__DIR__ '/assets/css' => public_path('css/chatify'),
            
// JavaScript
            
__DIR__ '/assets/js' => public_path('js/chatify'),
            
// Images
            
__DIR__ '/assets/imgs' => storage_path('app/public/' $userAvatarFolder),
        ], 
'chatify-assets');
    }

    
/**
     * Group the routes and set up configurations to load them.
     *
     * @return void
     */
    
protected function loadRoutes()
    {
        
Route::group($this->routesConfigurations(), function () {
            
$this->loadRoutesFrom(__DIR__ '/routes/web.php');
        });
    }

    
/**
     * Routes configurations.
     *
     * @return array
     */
    
private function routesConfigurations()
    {
        return [
            
'prefix' => config('chatify.routes.prefix'),
            
'namespace' =>  config('chatify.routes.namespace'),
            
'middleware' => config('chatify.routes.middleware'),
        ];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0072 ]--