Answers for "Writing into the database with one click laravel"

PHP
0

Writing into the database with one click laravel

Route::post('/signup', [
    'as'   => 'signup',
    'uses' => 'YourController@manuelSignUP',
]);
Posted by: Guest on October-23-2020
0

Writing into the database with one click laravel

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");
 }
Posted by: Guest on October-23-2020
0

Writing into the database with one click laravel

<form action="{{ route('signup') }}" method="post">
    <button type="submit"> submit </button>
</form>
Posted by: Guest on October-23-2020
0

Writing into the database with one click laravel

<!DOCTYPE html>
 <html>
<head> </head>

<body> This should  </body>
<br><br><br><br>
<form method="post">
<button type="button"> submit </button>
</form>
</html>
Posted by: Guest on October-23-2020

Code answers related to "Writing into the database with one click laravel"

Browse Popular Code Answers by Language