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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners