Laravel Load View в переменной
$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 }}
?>