All Questions
27 questions
0
votes
0
answers
26
views
How to avoid integrity constraint violations from duplicate sql insert commands triggered by >= async api calls at the same time in Laravel?
Our react app triggering X amount of same async requests (with different inputs) to our Laravel GraphQL API to avoid slow performance and improve fault tolerance.
Sometimes they insert into the same ...
0
votes
1
answer
54
views
How can I search for a calculated field in Laravel, a field that does not exist in the table in the DataTable?
I have a field in this table, which is a calculated field that is not in the table, and I want to search for a value inside it using the data table.
Other fields I used this code, but when I use the ...
0
votes
1
answer
55
views
How to delete a row from table linked to another tables with primary and foreign keys with query in Laravel controller?
I have this this function below to retrieve data from database using the following query:
$matterConveyancing_all_tables = DB::table('matter_conveyancings')
->join('matter_conveyancing_b_s', '...
0
votes
2
answers
43
views
Laravel Advanced Wheres how to implement wheres from different table
So I have two table and this is the column that they have
TableA = id, slug, user_id, friend_id, parent_id
TableB = id, user_id, friend_id
This is my example coding
$tableA = TableA::where('slug', ...
0
votes
1
answer
63
views
Laravel + javascript application: delay in ability to re-edit data entries
We are currently facing an issue with data re-edits in an application based on laravel 6 and javascript for front.
The application allows a logged in user to edit data entries previously added from ...
1
vote
1
answer
577
views
change status in database using ajax in laravel
i'am using Laravel in my project so i want to change the status of patient when he take an appointement with doctor , so he can have 3 satuts , Accept , waiting (automatically when the patient choose ...
1
vote
0
answers
4k
views
Laravel: Uncaught (in promise) Error: Request failed with status code 422
Hi, currently I facing this issue. I can fix it. I have no idea why the error occurs.
Basically, I trying to save the data into DB. I used the Axios method to fetch and save data. Before this, the ...
1
vote
1
answer
6k
views
foreach looping with javascript in laravel
Please help me
how to enter sql database into javascript
HTML
<table width="100%">
<tbody class="input_fields_Pesanan">
<tr>
<td style="width: 15%;" align="center"><b>...
3
votes
5
answers
2k
views
How to check checkbox array values exist from database PHP Laravel?
I want to check either the countries exist in countries and the checkbox will be displayed. The values is directly from the database. I can't set the value at the input since it is array/multiple ...
0
votes
1
answer
385
views
How to auto increment a specific database table value for every store. (Laravel 6)
How to Auto-Increment a specific database table value for every store.
I'm making a Queueing System and I have a DEPARTMENTS database table with 'name' 'letter' and 'number' as tables.
And I have a ...
0
votes
1
answer
249
views
Laravel how to render into fusion charts by day based on the query
Basically i want to render my chart as like this
In fusioncharts said, my data should be like this in order to render
"data": [{
"label": "January 21, 2020",
"value": "3"
...
0
votes
1
answer
2k
views
Vue js how to auto select checkbox based on database value with laravel
Im new to frontend so its a bit difficult for me to tell but here is my problem. I have this schedules menu or table and in the table itself it has a violation and remarks. This seems hard to explain ...
1
vote
1
answer
584
views
How to match the input field with the data inside the column database using PHP Laravel?
I have one input field named "policy_no". So from this group, I want to select the column that consist any of the input. The input might be "12345 12346 12347". I already put the LIKE statement inside ...
1
vote
1
answer
188
views
Laravel join multiple tables to get data
In my scenario i have 3 tables. customers, services and services_info.
customers table:
id | firstname | lastname ..etc.
services table:
id | service_id
services_info:
id | category | service |...
0
votes
1
answer
492
views
Vue js get individual value of hidden input stored in div
Wassup Folk,
I want the individual values of a hidden input stored in my divs, that are "cards" with values.
I added an onclick event, that triggers sendData() method. Currently I get always the ...