laravel 8 select name to get value from id query code example Example: DB::table('users')->get(); DB::select('select * from users ');