You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consistent styling for multi-line attributes (#9941)
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.
Copy file name to clipboardExpand all lines: blade.md
+30-18Lines changed: 30 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -482,10 +482,12 @@ Likewise, the `@style` directive may be used to conditionally add inline CSS sty
482
482
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`:
483
483
484
484
```blade
485
-
<input type="checkbox"
486
-
name="active"
487
-
value="active"
488
-
@checked(old('active', $user->active)) />
485
+
<input
486
+
type="checkbox"
487
+
name="active"
488
+
value="active"
489
+
@checked(old('active', $user->active))
490
+
/>
489
491
```
490
492
491
493
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
509
511
Moreover, the `@readonly` directive may be used to indicate if a given element should be "readonly":
510
512
511
513
```blade
512
-
<input type="email"
513
-
name="email"
514
-
value="email@laravel.com"
515
-
@readonly($user->isNotAdmin()) />
514
+
<input
515
+
type="email"
516
+
name="email"
517
+
value="email@laravel.com"
518
+
@readonly($user->isNotAdmin())
519
+
/>
516
520
```
517
521
518
522
In addition, the `@required` directive may be used to indicate if a given element should be "required":
519
523
520
524
```blade
521
-
<input type="text"
522
-
name="title"
523
-
value="title"
524
-
@required($user->isAdmin()) />
525
+
<input
526
+
type="text"
527
+
name="title"
528
+
value="title"
529
+
@required($user->isAdmin())
530
+
/>
525
531
```
526
532
527
533
<aname="including-subviews"></a>
@@ -1641,9 +1647,11 @@ The `@error` directive may be used to quickly check if [validation error message
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
0 commit comments