Answers for "laravel mysql views"

PHP
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

insert views laravel database

//for profile
  function profile($id){ 
     $data['user'] = User::find($id);
     #insert view                   
     User::find($id)->increment('views',1);
    
  return view('/user/profile', $data);}
// end for profile
Posted by: Guest on November-22-2021
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

Browse Popular Code Answers by Language