diff --git a/blade.md b/blade.md index d46c48b8f26..21c0bcdf6fe 100644 --- a/blade.md +++ b/blade.md @@ -10,7 +10,7 @@ - [Loops](#loops) - [The Loop Variable](#the-loop-variable) - [Conditional Classes](#conditional-classes) - - [Checked / Selected / Disabled](#checked-and-selected) + - [Checked / Selected / Disabled / Required](#checked-and-selected) - [Including Subviews](#including-subviews) - [The `@once` Directive](#the-once-directive) - [Raw PHP](#raw-php) @@ -438,7 +438,7 @@ The `@class` directive conditionally compiles a CSS class string. The directive ``` -### Checked / Selected / Disabled +### Checked / Selected / Disabled / Required For convenience, you may 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`: @@ -461,9 +461,10 @@ Likewise, the `@selected` directive may be used to indicate if a given select op ``` -Additionally, the `@disabled` directive may be used to indicate if a given element should be "disabled": +Additionally, the `@required` or `@disabled` directives may be used to indicate if a given element should be "required" or "disabled" respectively: ```blade +is_admin) /> ```