1<form action="{{ route('signup') }}" method="post">
2 <button type="submit"> submit </button>
3</form>
4
1<!DOCTYPE html>
2 <html>
3<head> </head>
4
5<body> This should </body>
6<br><br><br><br>
7<form method="post">
8<button type="button"> submit </button>
9</form>
10</html>
11
1Route::post('/signup', [
2 'as' => 'signup',
3 'uses' => 'YourController@manuelSignUP',
4]);
5
1public function manuelSignUP()
2{
3DB :: table("users") -> insertGetId
4(
5array("firstname" => "John", "lastname"=> "John",
6"passwordHash" => "password", "userslevelID" => 2)
7);
8
9DB :: table("userlevel") -> insertGetID
10 (
11
12array("userlevelID" => $userlevelID, "name" => $name)
13 );
14
15 return view("pages.manualsignup");
16 }
17