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>
<form action="{{ route('signup') }}" method="post">
<button type="submit"> submit </button>
</form>
Route::post('/signup', [
'as' => 'signup',
'uses' => 'YourController@manuelSignUP',
]);
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");
}
Also in PHP:
- array length php
- error uncaught even in try catch php
- current timestamp with sec in php to strstring
- bootswatch import theme into laravell vuejs
- "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 401952768 bytes)"
- date format in day name of month and year in php
- codeigniter 3 last insert id
- current data in php
- array uniuq in php
- Allowed memory size of 56623104 bytes exhausted (tried to allocate 12288 bytes) wordpress
- connexion à la base de donnée microsoftsqlserver avec php
- eloquent unique combination
- content for php.ini created manually
- clear cache laravel and composer
- autoload php multiple spl_autoload_register
- PHP securely hash a password
- $date php
- create a user using factory laravel
- function containsStr($str, $substr) { return strpos($str, $substr) !== false; }
- PHP echo and print Statements
- - phpunit/phpunit 8.5.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.
- file_get_contents() ssl operation failed with code 1
- array_key_exists php to python
- Failed at the @ development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.