title: Edit profile doesnt edit laravel
body: <p>like the title says, when i go to users/1 it shows me the form , after i change something and press confirm it doesnt update, neither in the view or in the database.What can be the problem here?</p>
  
  <p>my view edit.blade.php</p>
  
  <pre><code>  &lt;div class="container"&gt;
          &lt;div class="row justify-content-center"&gt;
              &lt;div class="col-md-8"&gt;
                  &lt;div class="card"&gt;
                      &lt;div class="card-header"&gt;&lt;h2 style="text-align:center;"&gt;Edit Your Profile&lt;/h2&gt;&lt;/div&gt;
                      &lt;div class="card-body"&gt;
                        &lt;form method="post" action="{{route('users.update',$user)}}"&gt;
                          {{ csrf_field() }}
                          {{ method_field('patch') }}
                        &lt;div class="form-group row"&gt;
                            &lt;label for="org_name" class="col-md-4 col-form-label text-md-right"&gt;{{ __('Organisation Name ') }}&lt;/label&gt;
  
                            &lt;div class="col-md-6"&gt;
                              &lt;input id="org_name" name="org_name" type="text" class="form-control"value="{{$user-&gt;org_name}}"&gt;
  
                                @error('org_name')
                                    &lt;span class="invalid-feedback" role="alert"&gt;
                                        &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                    &lt;/span&gt;
                                @enderror
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class="form-group row"&gt;
                            &lt;label for="email" class="col-md-4 col-form-label text-md-right"&gt;{{ __('E-Mail Address') }}&lt;/label&gt;
  
                            &lt;div class="col-md-6"&gt;
                                &lt;input id="email" type="email" class="form-control" name="email" value="{{ $user-&gt;email }}"&gt;
  
                                @error('email')
                                    &lt;span class="invalid-feedback" role="alert"&gt;
                                        &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                    &lt;/span&gt;
                                @enderror
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class="form-group row"&gt;
                            &lt;label for="username" class="col-md-4 col-form-label text-md-right"&gt;{{ __('Username') }}&lt;/label&gt;
  
                            &lt;div class="col-md-6"&gt;
                                &lt;input id="username" type="username" class="form-control" name="username" value="{{ $user-&gt;username }}"&gt;
  
                                @error('username')
                                    &lt;span class="invalid-feedback" role="alert"&gt;
                                        &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                    &lt;/span&gt;
                                @enderror
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class="form-group row"&gt;
                            &lt;label for="password" class="col-md-4 col-form-label text-md-right"&gt;{{ __('Password') }}&lt;/label&gt;
  
                            &lt;div class="col-md-6"&gt;
                                &lt;input id="password" type="password" class="form-control" name="password" &gt;
  
                                @error('password')
                                    &lt;span class="invalid-feedback" role="alert"&gt;
                                        &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                    &lt;/span&gt;
                                @enderror
                            &lt;/div&gt;
                        &lt;/div&gt;
  
                        &lt;div class="form-group row"&gt;
                            &lt;label for="password-confirm" class="col-md-4 col-form-label text-md-right"&gt;{{ __('Confirm Password') }}&lt;/label&gt;
  
                            &lt;div class="col-md-6"&gt;
                                &lt;input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password"&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class="form-group row"&gt;
                            &lt;label for="country" class="col-md-4 col-form-label text-md-right"&gt;{{ __('Country') }}&lt;/label&gt;
  
                            &lt;div class="col-md-6"&gt;
                                &lt;input id="country" type="text" class="form-control" name="country" value="{{$user-&gt;country}}"&gt;
  
                                @error('country')
                                    &lt;span class="invalid-feedback" role="alert"&gt;
                                        &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                    &lt;/span&gt;
                                @enderror
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class="form-group row"&gt;
                            &lt;label for="org_type" class="col-md-4 col-form-label text-md-right"&gt;{{ __('Organisation Type') }}&lt;/label&gt;
  
                            &lt;div class="col-md-6"&gt;
                                &lt;input id="org_type" type="text" class="form-control" name="org_type" placeholder="Vet/Uni" value="{{$user-&gt;org_type}}" &gt;
  
                                @error('org_type')
                                    &lt;span class="invalid-feedback" role="alert"&gt;
                                        &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                    &lt;/span&gt;
                                @enderror
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class="form-group row"&gt;
                            &lt;label for="depart" class="col-md-4 col-form-label text-md-right"&gt;{{ __('Department') }}&lt;/label&gt;
  
                            &lt;div class="col-md-6"&gt;
                                &lt;input id="depart" type="text" class="form-control" name="depart" value="{{ $user-&gt;depart}}"&gt;
  
                                @error('depart')
                                    &lt;span class="invalid-feedback" role="alert"&gt;
                                        &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                    &lt;/span&gt;
                                @enderror
                            &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group row mb-0"&gt;
                            &lt;div class="col-md-6 offset-md-4"&gt;
                              &lt;button type="submit" class="btn btn-primary"&gt;
                                Edit
                              &lt;/button&gt;
  
                        &lt;/form&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>my UserController  </p>
  
  <pre><code>class UserController extends Controller
  {
    public function __construct()
    {
        $this-&gt;middleware('auth');
    }
  
    public function edit(User $user)
    {
        $user = Auth::user();
        return view('users.edit', compact('user'));
    }
  
    public function update(User $user)
    {
  
  
          $this-&gt;validate(request(), [
            'org_name' =&gt; ['required', 'string', 'max:255','unique:users'],
            'email' =&gt; ['required', 'string', 'email', 'max:255', 'unique:users'],
            'username' =&gt; ['required', 'string','max:255', 'unique:users'],
            'password' =&gt; ['required', 'string', 'min:8', 'confirmed'],
            'country' =&gt; ['required', 'string', 'max:255'],
            'org_type' =&gt; ['required', 'string', 'max:255'],
            'depart' =&gt; ['required', 'string', 'max:255'],
              ]);
  
              $user-&gt;org_name = request('org_name');
              $user-&gt;email = request('email');
              $user-&gt;username = request('username');
              $user-&gt;password = bcrypt(request('password'));
              $user-&gt;country = request('country');
              $user-&gt;org_type = request('org_type');
              $user-&gt;depart = request('depart');
  
  
              $user-&gt;save();
  
              return back();
  
          }
  
  
  
    }
  </code></pre>
  
  <p>my routes </p>
  
  <pre><code>Route::get('users/{user}',  ['as' =&gt; 'users.edit', 'uses' =&gt; 'UserController@edit']);
  Route::patch('users/{user}/update',  ['as' =&gt; 'users.update', 'uses' =&gt; 'UserController@update']);
  </code></pre>
  
  <p>Thanks in advance! I think its something wrong with the users/1/update route?</p>