When a I click to a link, I want to pass $row->id to another view.

Here it is my link:

```
foreach($artisti as $row) {
                $artists .= '
                    <a href="{{ url(\'result/artista/\'.$row->id.\'/\') }}" class="dropdown-item">'.$row->nome.'</a>
                    ';
            }

```

Here it is my controller:

```
public function result($id)
{
    return view('result')->with('id', $id);
}

```

Here it is my web.php:

```
Route::get('/result/artista/{id}', 'LiveSearch@result')->name('artista');

```

Here it is the view I want to send the variable:

```
@extends('layouts.dashboard')

@section('content')

<h1>{{$id}}</h1>

@endsection

```