Файл: vendor/laravel/framework/src/Illuminate/Notifications/NotificationServiceProvider.php
Строк: 52
<?php
namespace IlluminateNotifications;
use IlluminateContractsNotificationsDispatcher as DispatcherContract;
use IlluminateContractsNotificationsFactory as FactoryContract;
use IlluminateSupportServiceProvider;
class NotificationServiceProvider extends ServiceProvider
{
/**
* Boot the application services.
*
* @return void
*/
public function boot()
{
$this->loadViewsFrom(__DIR__.'/resources/views', 'notifications');
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/resources/views' => $this->app->resourcePath('views/vendor/notifications'),
], 'laravel-notifications');
}
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton(ChannelManager::class, fn ($app) => new ChannelManager($app));
$this->app->alias(
ChannelManager::class, DispatcherContract::class
);
$this->app->alias(
ChannelManager::class, FactoryContract::class
);
}
}