From dc81382f37665d2fdfcf9934e6bee61c56ae698a Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 10 Oct 2024 18:27:03 -0500 Subject: [PATCH] consistent styling for multi-line attributes we had a mix of multiline attribute styling, some with the first attribute on the first line and some on the second line. this converts them all to be the same. --- blade.md | 48 ++++++++++++++++++++++++++++++------------------ validation.md | 6 ++++-- 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/blade.md b/blade.md index fb9193d6250..e124c9cfb2a 100644 --- a/blade.md +++ b/blade.md @@ -482,10 +482,12 @@ Likewise, the `@style` directive may be used to conditionally add inline CSS sty 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`: ```blade -active)) /> +active)) +/> ``` Likewise, the `@selected` directive may be used to indicate if a given select option should be "selected": @@ -509,19 +511,23 @@ Additionally, the `@disabled` directive may be used to indicate if a given eleme Moreover, the `@readonly` directive may be used to indicate if a given element should be "readonly": ```blade -isNotAdmin()) /> +isNotAdmin()) +/> ``` In addition, the `@required` directive may be used to indicate if a given element should be "required": ```blade -isAdmin()) /> +isAdmin()) +/> ``` @@ -1641,9 +1647,11 @@ The `@error` directive may be used to quickly check if [validation error message - + class="@error('title') is-invalid @enderror" +/> @error('title')
{{ $message }}
@@ -1657,9 +1665,11 @@ Since the `@error` directive compiles to an "if" statement, you may use the `@el - + class="@error('email') is-invalid @else is-valid @enderror" +/> ``` You may pass [the name of a specific error bag](/docs/{{version}}/validation#named-error-bags) as the second parameter to the `@error` directive to retrieve validation error messages on pages containing multiple forms: @@ -1669,9 +1679,11 @@ You may pass [the name of a specific error bag](/docs/{{version}}/validation#nam - + class="@error('email', 'login') is-invalid @enderror" +/> @error('email', 'login')
{{ $message }}
diff --git a/validation.md b/validation.md index b77486a7bdf..011d9f6d98d 100644 --- a/validation.md +++ b/validation.md @@ -220,10 +220,12 @@ You may use the `@error` [Blade](/docs/{{version}}/blade) directive to quickly d - + class="@error('title') is-invalid @enderror" +/> @error('title')
{{ $message }}