Do you have a column name as I'd
stored in the database table? If yes, then update it to something like id
as you must only use _
as special character while defining your database column names otherwise it will create problems while creating and retrieving data.
The table where I am retrieving data from has a column id. I populate select option value with id and I am trying to insert into another table column Team_Lead_ID.
My code is retrieving data alright. The problem is inserting the retrieved id into column Team_Lead_ID in the new table.
Can you share your code so that it will be easy to understand and help you in resolving your problem?
I have solved it. I didn't know to include it in $fillable in Model. I thought it is not necessary as it is not a direct user input. I added it to $flilable in model and it works. Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community