Skip to main content

All Questions

Tagged with
0 votes
0 answers
18 views

Update Form with 2 different source models, with 2 foreach

so, I have a form in which there is a dropdown with a data source from another model/table. to retrieve that data, I use foreach. there seems to be no problem during the insert process, but during the ...
Irfan Chaniago's user avatar
-3 votes
1 answer
58 views

I created another update route and function call update_mark, but when i click it always run to function update

This is my route' Route::post('/postponse_apps/update_mark',[PostponeApplicationsController::class,'update_mark']) ->name('update_mark'); Route::resource('/postponse_apps', ...
nguyen loan's user avatar
0 votes
1 answer
184 views

Proc_open problem. How to publish flare config file

I have installed php script made in laravel for my web-site: mirkoviclux.rs and everything worked perfectly and today I got this error. The Process class relies on proc_open, which is not available ...
Xcaos's user avatar
  • 1
-1 votes
2 answers
47 views

I am getting this error while want to update in the database

Missing required parameter for [Route: blog.update] [URI: blog/{post}/update] [Missing parameter: post]. in routes : Route::put('/blog/{post}/update', [BlogController::class, 'update'])->name('blog....
Gyanaranjan Sahoo's user avatar
0 votes
0 answers
98 views

Two duplicate rows | Laravel BUG

it is possible that there are two duplicate rows of my database, exactly identical. In the function I used for its creation I called once $ resource-> save () and a few times $ resource-> update ...
Vincenzo Locatelli's user avatar
0 votes
0 answers
373 views

How to update and delete multiple images in laravel?

I want to update and delete multiple images on laravel, the old images will be automatically deleted from storage after the update. And when I click to delete all images and other data are deleted too ...
ken thoriqi's user avatar
0 votes
0 answers
134 views

How to update image and delete image from two tables?

I have two tables image_rekap and rekaps how to update image and delete image. Controller: public function index(Request $request) { if($request->has('search')) { $data = rekap::where('...
ken thoriqi's user avatar
0 votes
1 answer
367 views

Laravel best approach for Testing if a value will change

The code I have a database, which has a table for Teams and Instructors along the lines of: | id | team_id | instructor_id | ... | Every 24 hours a batch runs that updates the instructor for that ...
The Blind Hawk's user avatar
0 votes
1 answer
442 views

Update default value

Good Morning Currently I am working on a job portal by the use of Laravel 8. The idea: I want to show the applicants the status of each job (they applied on). so for example: Engineer (as position) ...
Aly's user avatar
  • 11
0 votes
1 answer
215 views

After updating the user's email, send a message to reconfirm the email

When the user registers, an email will be sent to confirmation But how do I send a notification when a user updates their email? Like when he registers Use the link below to use Laravel's own ...
ahmadreza1383's user avatar
-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
185 views

delete the previous file with newone on update in laravel

what happen to my update file? I can't update file in my program, what's wrong with my controller? edit.blade.php <div class="row"> <div class="col-12"> {{ ...
Elnur Nitya's user avatar
1 vote
1 answer
974 views

Laravel7, user's phone (unique) by update throw 'The phone has already been taken.'

In profile.blade, while updating the inputs in the profile getting Error The phone has already been taken. Controller: public function profileUpdate(Request $request) { $user = Auth::user(); $...
Yassin's user avatar
  • 27
0 votes
2 answers
2k views

Updating input field by leaving

Is it possible with Laravel livewire to change a field in the database when leaving the input field?
Markus May'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
0 votes
0 answers
223 views

How do I solve the modal update issues in Laravel?

I have a modal in which I want to update my Question but the modal keeps updating the same question so can someone help me because my modal keeps taking the same $id even if I click on different ...
Georgio Bilani's user avatar
0 votes
1 answer
627 views

Laravel astrotomic translatable update method

I tried to update a record with this code but no success, i have this error message ... this is probably not the right method public function update(Request $request, int $id) { // dd($id, $...
Arnauld's user avatar
1 vote
0 answers
456 views

Laravel encrypt cannot encrypt to database when using Update method

Hi i want to encrypt some field in database when user create or edit data. IF create, the encryption work, but when user edit data, the value that save in database will be normal text not encrypted &...
Insko Malaysia's user avatar
1 vote
2 answers
439 views

Laravel WhereIn() function is not array result when combine with update function

I'm so confused in here, when I wanna make my data to updating to new data the result is always to be one data and the result is not array, like this : when the query is not combine with update method ...
ProLuck's user avatar
  • 369
2 votes
1 answer
112 views

Change variable inside a session Laravel 7

i want to change the attribute "cantidad" inside my session('cart') through a post form which have a input type="num" that will have the quantity to change on the session. But i ...
Gustavo Adrian Galvan's user avatar
0 votes
1 answer
161 views

PHP : update related id in laravel

I have this two models : first for categories which connected with courses in id: <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\...
SM_Berwari's user avatar
1 vote
1 answer
899 views

Laravel update() method yielding 'x doesn't have a default value' error

I have a form which takes in the following values: stage_name, stage_type, 'client_id', 'created_at', 'updated_at' I was able to create a method for adding a new item in the table, however in ...
Beginner_Hello's user avatar
0 votes
0 answers
43 views

laravel 403This action is unauthorized

Can you helpe me? I can't update sql's tables. Laravel laravel 403This action is unauthorized. Last stable version laravel and php7.4 class UsersController extends Controller public function ...
hugo's user avatar
  • 1
1 vote
1 answer
553 views

Update single field in a Profile Update Form in Laravel 5

I am trying to update a single field in my user profile form section in the Laravel app. I can save fields correctly in DB but input values and placeholders are taking wrong values. In every hit Save,...
Nikolay Sabev's user avatar
0 votes
1 answer
28 views

I am trying to update with multiple id's in laravel [duplicate]

Customer::where('id'=>[5,6,7])->update(['name' => "Ashutosh"]);
ashutosh singh's user avatar
1 vote
1 answer
137 views

Laravel : How to update boolean value using foreign key in a table

here is my database table I want to work with I want to update the participation column of form_submissions table with boolean 1 by using the user_id here is mycontroller public function update($...
Kaveesha Pathirana's user avatar
2 votes
1 answer
69 views

How can I show the old value in option fields in Laravel?

I want to show the old select value in this select field when I want to edit. How can I show my old value in these fields? https://github.com/shakibzaman/book-library-laravel you can show my GitHub ...
Shakib Zaman's user avatar
-2 votes
1 answer
43 views

getting issue in update query in laravel

Guys i am facing an issue in laravel on update i want to update 2 values in single column but its update only one value i want to update both values please help also please see my code and image link ...
digi soft's user avatar
0 votes
1 answer
121 views

how to add or edit gravitar within laravel

I know that we can user the gravitar in laravel for display pic but how can we add one if the new user doesn't have it or wish to update the current one from within the application? below article ...
princeoo7's user avatar
  • 1,101

15 30 50 per page