I\'m trying to create a blade directive to highlight some words that will return from my search query.
This is my blade directive:
class AppServiceProvid
Blade::directive('custom', function ($expression) { eval("\$params = [$expression];"); list($param1, $param2, $param3) = $params; // Great coding stuff here });
and in blade template:
@custom('param1', 'param2', 'param3')