public function composer($views, $callback)
    {
        $composers = [];

        foreach ((array) $views as $view) {
            $composers[] = $this->addViewEvent($view, $callback, 'composing: ');
        }

        return $composers;
    }
public function composer($views, $callback)
    {
        $composers = [];

        foreach ((array) $views as $view) {
            $composers[] = $this->addViewEvent($view, $callback, 'composing: ');
        }

        return $composers;
    }
public function composer ( $ views , $ callback ) { $ composers = [ ] ; foreach ( ( array ) $ views as $ view ) { $ composers [ ] = $ this -> addViewEvent ( $ view , $ callback , 'composing: ' ) ; } return $ composers ; }
Register a view composer event.

@param  array|string  $views
@param  \Closure|string  $callback
@return array
Register a view composer event .