ok

Mini Shell

Direktori : /home2/selectio/public_html/3-idiots/vendor/brian2694/laravel-toastr/src/
Upload File :
Current File : /home2/selectio/public_html/3-idiots/vendor/brian2694/laravel-toastr/src/ToastrServiceProvider.php

<?php
namespace Brian2694\Toastr;

use Illuminate\Support\ServiceProvider;

class ToastrServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->publishes([
            __DIR__ . '/config/toastr.php' => config_path('toastr.php'),
            ], 'config');
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('toastr', function ($app) {
            return new Toastr($app['session'], $app['config']);
        });
    }

    /**
     * Get the services provider by the provider
     *
     * @return array
     */
    public function provides()
    {
        return ['toastr'];
    }
}

Zerion Mini Shell 1.0