Laravel 8 未找到laravel 8路由错误问题404

Laravel 8 未找到laravel 8路由错误问题404,laravel-8,Laravel 8,我想我有一个路由错误,我无法修复它! 当我试图点击我的通知去查看页面中张贴的评论时 我得到这个错误404找不到 这是我的控制器中的功能 public function showFromNotification(Event $event, DatabaseNotification $notification) { $notification->markAsRead(); return view('events.show')->w

我想我有一个路由错误,我无法修复它! 当我试图点击我的通知去查看页面中张贴的评论时

我得到这个错误404找不到

这是我的控制器中的功能

public function showFromNotification(Event $event, DatabaseNotification $notification)
     {
          $notification->markAsRead();
 
          return view('events.show')->with(compact('event'));
     }
这是我的路线

Route::get('/showFromNotification/{event}/{notification}', 'App\Http\Controllers\EventController@showFromNotification')->name('events.showFromNotification');
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
 @foreach (auth()->user()->unreadNotifications as $unreadNotification)
 <a href="{{ route('events.showFromNotification', ['event' => $unreadNotification->data['eventId'], 'notification' => $unreadNotification->id]) }}" class="dropdown-item">{{ $unreadNotification->data['name'] }} Posted A Comment On <strong>{{ $unreadNotification->data['eventTitle'] }}</strong></a>
 @endforeach
 </div>

这在刀片中

Route::get('/showFromNotification/{event}/{notification}', 'App\Http\Controllers\EventController@showFromNotification')->name('events.showFromNotification');
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
 @foreach (auth()->user()->unreadNotifications as $unreadNotification)
 <a href="{{ route('events.showFromNotification', ['event' => $unreadNotification->data['eventId'], 'notification' => $unreadNotification->id]) }}" class="dropdown-item">{{ $unreadNotification->data['name'] }} Posted A Comment On <strong>{{ $unreadNotification->data['eventTitle'] }}</strong></a>
 @endforeach
 </div>


@foreach(auth()->user()->unreadNotifications作为$unreadNotification)
@endforeach
我怎么能修好它?请帮忙