Answers for "how to add database in laravel"

PHP
1

db name laravel

DB::connection()->getDatabaseName() //laravel
Posted by: Guest on October-30-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

Code answers related to "how to add database in laravel"

Browse Popular Code Answers by Language