make blade directive 2 parameters

92

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

    // Great coding stuff here
});

Comments

Submit
0 Comments