Q:

update table with laravel

I can`t update my table. Maybe you can see where is problem.
Edit works fine. It brings value to the fields. If i erase {{ method_field('PUT') }} it saves values normally, but i need to UPDATE
It`s my UPDATE controller
public function update(Request $request, Radar $radar)
{
    Radar::update([
        'date' => $request->input('date'),
        'number' => $request->input('number'),
        'distance' => $request->input('distance'),
        'time' => $request->input('time'),            
        ]);

     return redirect('/radars');
}

Thats how my view looks like:
<form action="{{ url('/radars')}}" method="post" > 
{{ method_field('PUT') }}
{{ csrf_field() }}

Routes: 
Route::put('radars/{radar}', 'RadarsController@update');

Error: 
MethodNotAllowedHttpException
No message

Thank you for help. 

A:

You need to specify ID:
{{ url('/radars/') . $radar->id }}

Also, you need to use object and not just a model class. Something like:
public function update(Request $request, Radar $radar)
{
    $radar->update($request->all());

    return redirect('/radars');
}

