mardi 24 décembre 2019

Missing required parameters for [Route: resumenes.show] [URI: resumenes/{resumen}]. (View: .../resources/views/resumenes/index.blade.php)

I'm new using laravel and I can't find where I'm doing wrong.

Controller

public function index()
{
    $resumenes = Resumene::orderBy('title','ASC')->paginate();
    return view('resumenes.index', compact('resumenes') );
}

public function show(Resumene $resumen)
{

    return view('resumenes.show', [
        'resumen'=> $resumen
    ]);
}

Routes

 Route::get('/resumenes/{resumen}', 'ResumeneController@show')->name('resumenes.show');

INDEX.BLADE.PHP In this view is where it shows me an error

 @extends('layout')
 @section('title')
 Mis Resumenes
 @endsection

@section('content')
<h1>Mis Resumenes</h1>

@include('partials.sessions')

<a href="">Nuevo Resumen</a>
<ul>
    @forelse($resumenes as $resumen)
    <h2></h2>
            **<li><a href="" ><button>Ir</button></a>** 
            <br> Creado hace  </li>
            <hr>
    @empty
            <li>No hay proyectos existentes</li>
    @endforelse

</ul>
 @endsection

The error supposed to be in

   <li><a href="" ><button>Ir</button></a>



Aucun commentaire:

Enregistrer un commentaire