403Webshell
Server IP : 3.138.164.131  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64
User : injazaat ( 1471)
PHP Version : 8.1.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/injazaat/public_html/vendor/realrashid/sweet-alert/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/injazaat/public_html/vendor/realrashid/sweet-alert/src//SweetAlertServiceProvider.php
<?php

namespace RealRashid\SweetAlert;

use Illuminate\Support\ServiceProvider;

class SweetAlertServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the package services.
     *
     * @return void
     * @author Rashid Ali <realrashid05@gmail.com>
     */
    public function boot()
    {
        /*
         * Registering the helper methods to package
         */
        $this->registerHelpers();

        /*
        * Registering the Package Views
        */
        $this->registerViews();

        // Publishing is only necessary when using the CLI.
        if ($this->app->runningInConsole()) {
            $this->registerPublishing();
        }
    }

    /**
     * Register helpers file
     *
     * @return void
     * @author Rashid Ali <realrashid05@gmail.com>
     */
    public function registerHelpers()
    {
        // Load the helpers in src/functions.php
        if (file_exists($file = __DIR__ . '/functions.php')) {
            require $file;
        }
    }

    /**
     * Register the package's views.
     *
     * @return void
     * @author Rashid Ali <realrashid05@gmail.com>
     */
    private function registerViews()
    {
        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'sweetalert');
    }

    /**
    * Register the package's publishable resources.
    *
    * @return void
    * @author Rashid Ali <realrashid05@gmail.com>
    */
    private function registerPublishing()
    {
        $this->publishes([
            __DIR__ . '/../resources/views' => resource_path('views/vendor/sweetalert')
        ], 'sweetalert-view');

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

        $this->publishes([
            __DIR__ . '/../resources/js' => public_path('vendor/sweetalert')
        ], 'sweetalert-asset');
    }

    /**
     * Register the application services.
     *
     * @return void
     * @author Rashid Ali <realrashid05@gmail.com>
     */
    public function register()
    {
        // Automatically apply the package configuration
        $this->mergeConfigFrom(__DIR__ . '/config/sweetalert.php', 'sweetalert');

        // Binding required classes to app
        $this->app->bind(
            'RealRashid\SweetAlert\Storage\SessionStore',
            'RealRashid\SweetAlert\Storage\AlertSessionStore',
            'RealRashid\SweetAlert\ToSweetAlert'
        );

        // Register the main class to use with the facade
        $this->app->singleton('alert', function ($app) {
            return $this->app->make(Toaster::class);
        });

        if ($this->app->runningInConsole()) {
            // Registering package commands.
            $this->commands([
                Console\PublishCommand::class,
            ]);
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit