· September 9, 2020 · ⋆ Laravel With the release of Laravel 8, you can now render Blade components dynamically using a built-in component called dynamic-component. Essentially, you can use dynamic components in scenarios where you’d want to render components based on the value of a variable.
You can, of course, pass down various attributes to the underlying Blade components in dynamic-component like so.
Follow me on Twitter @amit_merchant Dynamic blade components in Laravel 8 Re-usable Blade components for Laravel projects using Blade UI Kit Refactor related macros to classes using Mixins in Laravel Using simple yet effective caching for Laravel queries Define relationships outside of Eloquent models in Laravel Dynamic blade components in Laravel 8 My workflow for publishing articles Named function arguments in JavaScript Re-usable Blade components for Laravel projects using Blade UI Kit Showing related posts based on the category of current post in Jekyll