Laravel Blade's @checked directive allows you to easily set at HTML checkbox to checked

Опубликовано: 08 Октябрь 2024
на канале: Laravel News
1,236
60

In Laravel Blade, you can use the `@checked` directive to easily indicate if a given HTML checkbox input is "checked". This directive will echo “checked” if the provided condition evaluates to true.

@laravelnews on social:
Instagram:   / laravelnews  
Twitter:   / laravelnews  
Facebook:   / laravelnews  
LinkedIn:   / laravel-news  

All our screencasting gear:
https://laravelnews.notion.site/Scree...

➫ Business Inquires: [email protected]
----------------------------------------------------------------------
JOIN OUR WEEKLY LARAVEL NEWSLETTER
👉 https://laravel-news.com/newsletter
----------------------------------------------------------------------