Category: Laravel, PHP, javascript

A blog on PHP, JavaScript and more Amit Merchant · August 8, 2020 · ⋆ Laravel As I described in this article on how you can create anonymous components in Laravel, we can create an component with the following content.

Now, we can pass additional attributes to the component which will be available to the component template. For instance, if we pass in a type attribute to the component like so.

So, if we want to set the type attribute’s default value to success, we can do it like so.
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