/** * Register the decorator macros. */ public function boot() { Decorator::macro('navbar', function (Fluent $navbar) { return view('components.navbar', compact('navbar')); }); }
/** * Register the decorator macros. */ public function boot() { Decorator::macro('comment', function (Comment $comment, array $actions) { return view('components.comment', compact('comment', 'actions')); }); }