for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Rocket\UI\Script\Support\Laravel5;
/**
* Register special service providers
*/
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
* {@inheritdoc}
public function register()
$this->shareJS();
}
protected function shareJS()
$this->app->singleton(
'js',
function () {
$js = new JS([]);
$this->app['events']->dispatch('js.init', [$js]);
return $js;
);