I made a crud, but I changed the organization of the files, instead of following the pattern, I created a user folder that contains the controller, route and model. I'd like help trying to figure out why I can not find the route through link_to_route.
routes.php
Route::resource('/', '\App\Usuario\Http\Controllers\UsuariosController');
users / index.blade.php
@foreach ($usuarios as $usuario)
<tbody>
<tr>
<td>{{$usuario->nome}}</td>
<td>{{$usuario->sobrenome}}</td>
<td>{{$usuario->email}}</td>
<td>{{$usuario->usuario}}</td>
<td>{{$usuario->created_at}}</td>
<td>{{$usuario->updated_at}}</td>
<!--É necessário uma rotas nomeada-->
<td>{{ link_to_route('edit', $title = 'Editar', $usuario->id, $attributes = []) }}</td>
</tr>
</tbody>
@endforeach
This is the error:
NotFoundHttpException in RouteCollection.php line 161