I tried to create a new route with a controller that uses an id parameter, and a link to this. The error is when I try to create a link to a controller. The error that I got is:
"Missing required parameters for [Route: notas.detalle] [URI: detalle/{id}]. (View: /var/www/html/laravel/blog/resources/views/producto.blade.php)"
The route:
Route::get('detalle/{id}', 'productoController@detalle')>name('notas.detalle');
The blade template:
@foreach($notas as $nota)
<a href="{{ route('notas.detalle'), $nota }}">{{$nota->id}}</a>
{{$nota->created_at}}
{{$nota->updated_at}}
@endforeach
What can be the problem?
$notavariable is outside the function parenthesis.route('notas.detalle'), $notashould beroute('notas.detalle', $nota)- Qirel