Can you try without an array in the route()
route('tasks.update', $task->task_id)
I think I had something similar after upgrading to 7
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
This is a strange one I've been fighting for the last 12ish hours. On my production app I'm getting the following error:
Missing required parameters for [Route: tasks.update] [URI: tasks/{task}]. (View: /home/forge/DOMAIN/resources/views/tasks/index.blade.php)
My form action:
<form method="POST" action="{{ route('tasks.update', ['task' => $task->task_id]) }}">
My controller method:
public function update(Task $task, Request $request)
{
if ($request->priority_score != $task->job->priority)
{
$task->job()->update([
'priority' => $request->priority_score
]);
return back()->with('success', 'Priority score successfully updated!');
}
$task->update($request->all());
return back()->with('success', 'Task successfully updated!');
}
And my routes/web.php
Route::post('/tasks/{task_id}', 'TaskController@update')->name('tasks.update');
Route::resource('tasks', 'TaskController');
I moved the update method to its own route in the hopes that might help the production issue, since it also works locally, but it did not.
I've cleared caches, run dump-autoload, all to no avail.
Thoughts?
Cross-posted on SO.
See what your browser developer tools is showing. That is strange. Unless there there is a case issue. Linux being case sensitive.
Please or to participate in this conversation.