public static function register(array $directives)
    {
        collect($directives)->each(function ($item, $key) {
            Blade::directive($key, $item);
        });
    }
public static function register(array $directives)
    {
        collect($directives)->each(function ($item, $key) {
            Blade::directive($key, $item);
        });
    }
public static function register ( array $ directives ) { collect ( $ directives ) -> each ( function ( $ item , $ key ) { Blade :: directive ( $ key , $ item ) ; } ) ; }
Register the directives.

@param  array $directives
@return void
Register the directives .