Skip to content

Commit 69cdca1

Browse files
Add Example for importing PHP constants in blade (#10413)
1 parent ae9a6f5 commit 69cdca1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ The `@use` directive also supports importing PHP functions and constants by pref
662662

663663
```blade
664664
@use(function App\Helpers\format_currency)
665+
@use(const App\Constants\MAX_ATTEMPTS)
665666
```
666667

667668
Just like class imports, aliases are supported for functions and constants as well:

0 commit comments

Comments
 (0)