Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

pass data to blade laravel

<?php
Route::get('/', function () {
    return view('welcome', ['name' => 'Samantha']);
});
?>

// In Blade
<?php
	{{ $name }}
?>
 
PREVIOUS NEXT
Tagged: #pass #data #blade #laravel
ADD COMMENT
Topic
Name
5+9 =