skip to Main Content

I have been trying to solve this issue from yesterday. There is an issue in my update method and I can’t figure it out.
I have been trying to update my foreign key of the services table.

User created a service and now I want to change the name of the user that created it and that updated it but nothing is happening I am getting this issue again and again.

This is my form field of the edit.blade.php
edit.blade.php

And this is the update method of my Controller:
controller-update-method

I have tried many things, searched for thousand of things , watched for almost 10 times still nothing happened.

2

Answers


  1. some things to do:

    1. inspect the values of your options to check if they are actually set and not value=""
    2. inspect the values of your request server side by dd($request->all())
    3. make sure your fields exist in your model’s $fillable array
    Login or Signup to reply.
  2. check if the created_by and updated_by values from request is valid or not
    dd($request->created_by)
    dd($request->updated_by)

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search