All Questions
25
questions
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 ...
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 ...
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
...
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
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
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
&...
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 ...
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 ...
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\...
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 ...
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 ...
-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 ...
1
vote
0
answers
47
views
Update Data from 3 or more table from another table (Laravel)?
i have 3 table relation category, subgroup, and k3s, i want dynamic update using select, but when i update category from subgroup, data on k3s cant update, i just want update module_id to table k3s ...
0
votes
1
answer
3k
views
How to load items in a multi select dropdown for update - Laravel
Using Laravel, I have created an updatable form. One of these fields is a multi-select dropdown. This field should display all locations linked to a given project. So the user can see which location ...
0
votes
1
answer
1k
views
Call to a member function save() on array - using laravel
I am trying to update my user info and i have make object of json currently my json have object of user profile and i want to save my info using the json object i have also my controller code where i ...