Laravel • The Basics • Blade Templates
Sometimes you may need to render a component but not know which component should be rendered until runtime. In this situation, you may use Laravel's built-in dynamic-component component to render the component based on a runtime value or variable.
<x-dynamic-component :component="$componentName" class="mt-4" />
Tip: Carefully read the questions, I may be trying to trip you up with key words or phrases.