Set default value for attributes in components using @props directive in Laravel
August 8, 2020 — As I described in this article on how you can create anonymous components in Laravel, we can create an <x-alert>
component with the following content.