All Questions
57
questions
87
votes
3
answers
160k
views
Laravel: Listen for Model save or update (after or before they're done)
I need to generate a function to call after or before save() or update() but i don't know how to do.
I think I need a callback from save() update() but I don't know how to do.
Thanks
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 ...
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 ...
5
votes
2
answers
9k
views
INVALID CREDENTIALS error when trying to update Laravel/Nova via Composer to latest release
I have been trying for two days now to update Nova
After getting the composer.json file correct to where the update process seems to be functioning, correctly I get an authentication error.
...
-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', ...
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 ...
-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....
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 ...
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('...
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
...
49
votes
5
answers
39k
views
Laravel check if updateOrCreate performed an update
I have the following code in my controller:
for($i=0; $i<$number_of_tourists; $i++) {
$tourist = Tourist::updateOrCreate([
'doc_number' => $request['doc_number'][$I]
],
$...
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 ...
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) ...
-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....