<?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']; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Facades | Folder | 0755 |
|
|
config | Folder | 0755 |
|
|
Toastr.php | File | 5.18 KB | 0644 |
|
ToastrServiceProvider.php | File | 810 B | 0644 |
|
helper.php | File | 207 B | 0644 |
|