Запись в базу данных с одним кликом Laravel
<form action="{{ route('signup') }}" method="post">
<button type="submit"> submit </button>
</form>
SAMER SAEID
<form action="{{ route('signup') }}" method="post">
<button type="submit"> submit </button>
</form>
public function manuelSignUP()
{
DB :: table("users") -> insertGetId
(
array("firstname" => "John", "lastname"=> "John",
"passwordHash" => "password", "userslevelID" => 2)
);
DB :: table("userlevel") -> insertGetID
(
array("userlevelID" => $userlevelID, "name" => $name)
);
return view("pages.manualsignup");
}
<!DOCTYPE html>
<html>
<head> </head>
<body> This should </body>
<br><br><br><br>
<form method="post">
<button type="button"> submit </button>
</form>
</html>