37 lines
888 B
PHP
37 lines
888 B
PHP
<?php
|
|
|
|
namespace BeyondCode\LaravelWebsockets;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class LaravelWebsocketsServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*/
|
|
public function boot()
|
|
{
|
|
if ($this->app->runningInConsole()) {
|
|
$this->publishes([
|
|
__DIR__.'/../config/skeleton.php' => config_path('skeleton.php'),
|
|
], 'config');
|
|
|
|
/*
|
|
$this->loadViewsFrom(__DIR__.'/../resources/views', 'skeleton');
|
|
|
|
$this->publishes([
|
|
__DIR__.'/../resources/views' => base_path('resources/views/vendor/skeleton'),
|
|
], 'views');
|
|
*/
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Register the application services.
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'skeleton');
|
|
}
|
|
}
|