Skip to main content

All Questions

Tagged with
1 vote
1 answer
37 views

Laravel - Rollback specific eloquent transaction after many other transactions committed

I will try as much as I can to explain my question, let's say that I have a shipping system that many admins using, one of the shipping steps is to put a selected packages in a container, the problem: ...
Mocha's user avatar
  • 19
0 votes
1 answer
37 views

How to Display Item Quantity Based on Product Selection in Laravel 11?

How to display the quantity of items from the 'item_amount' column when a product name is selected from the 'item_name' selector in Laravel 11, based on the data in the database? Database id ...
Yuda AdyaJudha's user avatar
0 votes
0 answers
34 views

Laravel: How to insert entries into a specific table [duplicate]

There is an issue with inserting entries into a specific table. Usual methodology (model) Creation of an table (portfolio_item) <?php use Illuminate\Database\Migrations\Migration; use Illuminate\...
Roman_Coding's user avatar
0 votes
0 answers
64 views

Error in Filament\Support\Services\RelationshipJoiner

I am currently learning to use Filament, but I encountered an error that says, Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints(): Argument #1 ($relationship) must be of type ...
Piddd's user avatar
  • 1
1 vote
1 answer
46 views

Value change from db when called by api

I'm experiencing an issue with retrieving data from my database through an API call. I have a table in my database where the id column contains alphanumeric values, which are mechanographic codes for ...
Fabio Pisani's user avatar
0 votes
0 answers
27 views

How to show posts to user based on likes and comments by following account?

i am making website using laravel and want to add functionality where user can see those posts which are liked or commented by those accounts which are followed by logged in user and exclude posts of ...
my apps's user avatar
0 votes
0 answers
18 views

Mysql Left join with latest one record only from right table without turning off strict mode [duplicate]

I have 2 tables; I need join all cars and their users who has user.car_status = 1, but only with latest user. I know it can be achived by turning off the above mode and there might be similar ...
Amit Shah's user avatar
  • 8,039
0 votes
0 answers
54 views

Connection refused Laravel 11 deployed on Infinityfree.com

I have deployed a Laravel 11 app on infinity free and I get this error: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from sessionswhereid = ...
Milan Nikolic's user avatar
0 votes
0 answers
36 views

connecting from localhost Laravel website to Hostinger shared hosting MySQL database is too slow

Connecting from localhost Laravel website to Hostinger shared hosting MySQL database is too slow.. it takes around 20 seconds to load login page. What can be the problem and how to solve it. I also ...
Yagnesh's user avatar
1 vote
1 answer
36 views

How retrieve data from polymorphic relationship properly?

Hello I've got a problem with retrieving data from polymorphic relation in my Laravel 11 application. I am trying to retrieve all reports which are associated with one single Post. It works with db ...
JayVch's user avatar
  • 95
-1 votes
1 answer
33 views

how to insert data from the old database into the new database in laravel

how to enter data from an old database into a new database where tables have been added and several existing tables have columns added in laravel. Use Laragon as a localhost web server I haven't tried ...
Zulham Hamzah's user avatar
0 votes
0 answers
33 views

Laravel tenant early initialization for multi db system

i am building a laravel multi tenant (each tenant have a seperated db), with tenancyforlaravel package. Now i am building a structure where users can create it own entity like: Cars, Jobs etc. I have ...
Maison012's user avatar
  • 101
0 votes
0 answers
20 views

Foreign key constraint is incorrectly formed | Laravel project

Auctions table class CreateAuctionsTable extends Migration { public function up(): void { Schema::create('auctions', function (Blueprint $table) { $table->id(); ...
404ptk's user avatar
  • 3
2 votes
3 answers
81 views

Update data with laravel

The problem arises when I use the "save" method to save the data, as it returns as undefined, this is the code : public function profile() { return view('profile.edit', ['user' => ...
Mohamed Zouine's user avatar
0 votes
0 answers
86 views

SQLSTATE[22032]: <<Unknown error>>: 3140 Invalid JSON text: "Invalid value." at position 0 in value for column 'products.product_active_matterials'

I got this error while inputing data through form in my laravel project that some column in database having json datatype. Below are my inputed value and here is my table structure. ...
XYZ.Currate's user avatar

15 30 50 per page
1
2 3 4 5
273