laravel select id name from table code example
Example 1: get table name from model laravel
$item = new Item;
$table = $item->getTable();
print_r($table);
Example 2: DB::table('users')->get(); id 1
$users = DB::table('users')where('id','=', $userid)->get();