Answers for "laravel select id name from table"

PHP
1

get table name from model laravel

$item = new Item;
$table = $item->getTable();
print_r($table);
Posted by: Guest on October-11-2020
0

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

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

Code answers related to "laravel select id name from table"

Browse Popular Code Answers by Language