All Questions
5
questions
-1
votes
2
answers
149
views
laravel eloquent ORM update and delete
How to combine POST and UPDATE commands in one action in laravel 8 with ajax?
I have one column "status" in another table that I need to update when I save the data.
In this case basically I ...
0
votes
2
answers
29
views
how to update first row on button click
i want to update a first record status into '2' based on button click.
Here is my code :
public function repay(Request $request,$loanid){
$obj = DB::table('schdls')
->where('schdls....
1
vote
1
answer
215
views
Create new user in database but keep password if it exists in Laravel
I am wondering if the updateOrCreate method in Laravel has a way to skip some information in case the record exists in the database. For example, I wanna be able to search for users, and assign a ...
2
votes
1
answer
1k
views
How to update my Pivot Table with addition field in laravel
My table with eloquent relationship in laravel 5.3
User
--id
--name
Gallery
--id
--name
Video
--id
--name
Tags *pivot ...
2
votes
1
answer
2k
views
How to use mutators in laravel mass update?
I am currently updating multiple rows in my database by doing the following:
I take an array in a post and loop through it, each member is an array of fieldname=>value and I am doing an update on ...