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 ?>;
 
PREVIOUS NEXT
Tagged: #pass #variable #blade #laravel
ADD COMMENT
Topic
Name
3+1 =