estoy presentando el siguiente error de: Route [quotations.show] not defined. (View:, al realizar un route:list me he dado cuenta que la ruta show no aparece no solo para quotations si no tambien para role y user, a pesar de si estar definidas en el archivo web.php
Route::post('admin/quotations/store','QuotationController@store')->name('quotations.store') ->middleware('can:quotations.create'); Route::get('admin/quotations','QuotationController@index')->name('quotations.index') ->middleware('can:quotations.index'); Route::get('admin/quotations/create','QuotationController@create')->name('quotations.create') ->middleware('can:quotations.create'); Route::put('admin/quotations/{quotation}','QuotationController@update')->name('quotations.update') ->middleware('can:quotations.edit'); Route::get('admin/quotations/{quotation}','QuotationController@show')->name('quotations.show') ->middleware('can:quotations.show'); Route::delete('admin/quotations/{quotation}','QuotationController@destroy')->name('quotations.destroy') ->middleware('can:quotations.destroy'); Route::get('admin/quotations/{quotation}','QuotationController@edit')->name('quotations.edit') ->middleware('can:quotations.edit');
seccion en la vista :
<div class="card"> <div class="card-header"> Cotizaciones @can('quotations.create') <a href="{{route ('quotations.create')}}" class="btn btn-success float-right">Crear</a> @endcan </div> <div class="card-body"> <table class="table table-striped table-hover"> <thead class="table table-primary"> <tr> <th>Codigo</th> <th>Cliente</th> <th>Fecha</th> <th>Detalle</th> <th colspan="3"> </th> </tr> <tbody> @foreach ($ quotations as $ quotation) <tr> <td>{{$ quotation->id}}</td> <td>{{$ quotation->client->name}}</td> <td>{{$ quotation->created_at}}</td> <td> @can('quotations.show') <a href="{{route ('quotations.show,$ quotation->id')}}" class="btn btn-success float-right">Crear</a> @endcan </td> </tr> @endforeach
Las rutas otras 6 rutas por modulo si funcionan.