Dynamic blade components in Laravel 8

1 · Amit Merchant · Sept. 9, 2020, 1:23 p.m.
With the introduction 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. i.e in scenarios where it’s not known which component to render until runtime. Using dynamic-component component For instance, a situation where you show a certain message to the user in the user/edit.blade.php component based on a ce...