Source: www.amitmerchant.com

Dynamic blade components in Laravel 8

Category: Laravel, Laravel, PHP, PHP, javascript, javascript

· 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
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners