When I want to enter one page I defined earlier, it just shows error.
More specifically - Route [/infos] not defined. (View: ...\resources\views\infos\create.blade.php)
.
In my php artisan route:list
, it shows that the route exists normally. This post is my last hope, bc I'm trying to figure this out for a couple of days.
web.php code block
Route::get('/infos/{worker}/create', 'WorkerController@info')->name('infos.create');
WorkerController code block
public function info($id)
{
$worker = Worker::find($id);
return view('infos.create')->withWorker($worker);
}