public function composers(array $composers)
    {
        $registered = [];

        foreach ($composers as $callback => $views) {
            $registered = array_merge($registered, $this->composer($views, $callback));
        }

        return $registered;
    }
public function composers(array $composers)
    {
        $registered = [];

        foreach ($composers as $callback => $views) {
            $registered = array_merge($registered, $this->composer($views, $callback));
        }

        return $registered;
    }
public function composers ( array $ composers ) { $ registered = [ ] ; foreach ( $ composers as $ callback => $ views ) { $ registered = array_merge ( $ registered , $ this -> composer ( $ views , $ callback ) ) ; } return $ registered ; }
Register multiple view composers via an array.

@param  array  $composers
@return array
Register multiple view composers via an array .