Closed da-sie closed 3 years ago
How is this different than the view
method?
https://github.com/diglactic/laravel-breadcrumbs#switching-views-at-runtime
Damn, I didn't find it in readme "Custom Templates” section, so I committed the solution, thinking I’m saving the world or something... Of course, dump this one. My fault. Thank you for your time.
Regards, Przemek
Wiadomość napisana przez Sheng Slogar @.***> w dniu 23.05.2021, o godz. 14:53:
How is this different than the view method?
https://github.com/diglactic/laravel-breadcrumbs#switching-views-at-runtime https://github.com/diglactic/laravel-breadcrumbs#switching-views-at-runtime — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/diglactic/laravel-breadcrumbs/pull/27#issuecomment-846558805, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQEAX435KPLP3X7BKG5RTTPD3GDANCNFSM45LVRT4A.
Appreciate the PR. Docs could probably use some improvement 👍
I've added withView() method that allows to pass view path in blade files, with following syntax while rendering: {{ Breadcrumbs::withView('partials.custom_breadcrumbs')->render()}} This way you don't have to use globally defined view file and pass it even dynamically depending on environment (site, administration, multi-theme, etc.