Machen Sie die Parameter von Blade Richtlinie 2 Parameter

Blade::directive('custom', function ($expression) {
    $params = explode(',', $expression);
    list($param1, $param2, $param3) = $params;

    // Great coding stuff here
});
Written Sigh