Tampilan Laravel Load dalam Variabel
$html = view('users.edit', compact('user'))->render();
Dizzy Dove
$html = view('users.edit', compact('user'))->render();
<?php
Route::get('/', function () {
return view('welcome', ['name' => 'Samantha']);
});
?>
// In Blade
<?php
{{ $name }}
?>