Laravel -Lastansicht in Variable
$html = view('users.edit', compact('user'))->render();
Dizzy Dove
$html = view('users.edit', compact('user'))->render();
return View::make('blog')->with('posts', $posts);
$request->input('firstname');
public function users(Request $request)
{
$name = $request->input('firstname'); // This is better than using $_POST
$lastname = $request->input('lastname');
DB :: table("newUsers") -> insertGetId
(
array("firstname" => $name, "lastname" => $lastname, "email" => "test")
);
return view("pages.users");
}