LARAVEL 8 404 NOT FOUND PAGE

  laravel, php

THIS IS THE ROUTE
Route::get('detail/{id}',[DirecteurController::class,'detail']);

HERE THE FUNCTION

function detail($id){ echo $id; }

AND HERE IS THE BLADE PART

`@foreach ($liste as $item)

        <a href="detail/{{ $item->id}}" class="btn btn-info nav-icon fas fa-eye"></a>
        <a href="" class="btn btn-danger nav-icon fas  fa-user"></a>
        
      </td>
      @endforeach`

Source: Ask PHP

LEAVE A COMMENT