diff --git a/blade.md b/blade.md index 788485f29d3..a92123474ad 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](#checked-and-selected) + - [Checked / Selected / Disabled](#checked-and-selected) - [Including Subviews](#including-subviews) - [The `@once` Directive](#the-once-directive) - [Raw PHP](#raw-php) @@ -434,7 +434,7 @@ The `@class` directive conditionally compiles a CSS class string. The directive ``` -### Checked / Selected +### Checked / Selected / Disabled 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`: @@ -457,6 +457,12 @@ 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": + +```blade + +``` + ### Including Subviews