Created
December 15, 2022 12:03
-
-
Save Tynael/e5ffcad468d9983dbf61f6adcb40e7e1 to your computer and use it in GitHub Desktop.
How to Set Variables in Blade Templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<body> | |
<div> | |
<h1>{{ $name = 'John Doe' }}</h1> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example used for https://neutrondev.com/how-to-set-variables-in-blade-templates/