Answers for "laravel insert or get"

PHP
1

laravel insert

DB::table('users')->insert([
    'email' => '[email protected]',
    'votes' => 0
]);
Posted by: Guest on January-23-2021
0

DB::table('users')->get(); id 1

$users = DB::table('users')where('id','=', $userid)->get();
Posted by: Guest on October-22-2020

Browse Popular Code Answers by Language