Passer le paramètre pour afficher Laravel
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});
Elated Earthworm
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});
$html = view('users.edit', compact('user'))->render();
Route::get("/page", function(){
return View::make("dir.page");
});
return View::make('blog')->with('posts', $posts);
{{ dd(get_defined_vars()['__data']) }}