app/Providers/CommentsServiceProvider.php
/**
     * Register the application services.
     *
     * @return void
     */
Register the application services.
@return void
Register the application services . @return void
public function register()
    {
        $this->app['comments'] = $this->app->share(function($app){
			return new commentsService($app->view);
		});
    }
public function register ( ) { $ this -> app [ 'comments' ] = $ this -> app -> share ( function ( $ app ) { return new commentsService ( $ app -> view ) ; } ) ; }
Register the application services.
Register the application services .