I have 20 data in my table, but I just want to show 10 data in my view. How to get just 10 data from 20 data ?

My controller, something like this

```
public function getData(){
    $data['row'] = DB::table('my_table')->get();

    return view('home',$data);
}

```

My view, something like this

```
@foreach($row as $rows)
    <p>{{$rows->teks_data}}</p>
@end foreach

```

The point is how to show data from table with specific value ?