Skip to content

Commit 4d09ace

Browse files
osbretaylorotwell
andauthored
[12.x] Group imports in Blade @use directive (#10333)
* Group imports in Blade `@use` directive * Update blade.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 45d6ce9 commit 4d09ace

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

blade.md

+6
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,12 @@ A second argument may be provided to the `@use` directive to alias the imported
652652
@use('App\Models\Flight', 'FlightModel')
653653
```
654654

655+
If you have multiple classes within the same namespace, you may group the imports of those classes:
656+
657+
```blade
658+
@use('App\Models\{Flight, Airport}')
659+
```
660+
655661
<a name="comments"></a>
656662
### Comments
657663

0 commit comments

Comments
 (0)