Skip to main content

All Questions

Tagged with
-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 ...
Bumblebeen's user avatar
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....
Bayakaa Gungaajav's user avatar
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 ...
Tales's user avatar
  • 1,881
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 ...
Al-Amin's user avatar
  • 778
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 ...
arrowill12's user avatar
  • 1,804