for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Shamaseen\Laravel\Ratchet;
use Illuminate\Support\ServiceProvider;
use Shamaseen\Laravel\Ratchet\Commands\WebSocketService;
use Shamaseen\Laravel\Ratchet\Routes\Routes;
/**
* Class GeneratorServiceProvider
* @package Shamaseen\Repository\Generator
*/
class LaravelRatchetServiceProvider extends ServiceProvider
{
* Bootstrap services.
*
* @return void
public function boot()
if ($this->app->runningInConsole()) {
$this->commands([
WebSocketService::class
]);
}
$this->publishes([
__DIR__.'/config' => realpath('config'),
__DIR__.'/Routes/published' => realpath('routes'),
],'laravel-ratchet');
if ($this->app['config']->get('laravel-ratchet') === null) {
$this->app['config']->set('laravel-ratchet', require __DIR__.'/config/laravel-ratchet.php');
* Register services.
public function register()
$this->app->bind('WsRoute',function (){
return new Routes();
});