Skip to content

Commit

Permalink
Document @env's parameters (#6284)
Browse files Browse the repository at this point in the history
* Document @env's parameters

Corresponds to the updates in laravel/framework#33590

* Update blade.md

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
runofthemill and taylorotwell committed Aug 31, 2020
1 parent 7d40490 commit 992b55c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ You may check if the application is running in the production environment using
Or, you may determine if the application is running in a specific environment using the `@env` directive:

@env('staging')
// Staging specific content...
// The application is running in "staging"...
@endenv

@env(['staging', 'production'])
// The application is running in "staging" or "production"...
@endenv

<a name="switch-statements"></a>
Expand Down

0 comments on commit 992b55c

Please sign in to comment.