Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

pass variable to blade laravel

// In the main router.
return view("profile")->with('username', "CoolGuy")

// In the blade.
<?php echo username ?>;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #variable #blade #laravel
ADD COMMENT
Topic
Name
8+5 =