Hello, On my project, every user has his/her own database, so, to mass assign forms I need to set th...
I have 3 tables parts id offers id | part_id | quantity | price shippings id | offer_id | quantity P...
hi everyone, im have some relations in my DB and heres the relatin i'm working with: $category = Cat...
Hi Guys I have three tables in my database customer, sales, payment . A customer can have many Sales...
I'm experiencing trouble with a relationship (5.7). I do have data separated in two databases, which...
Hello, I'm trying to set up a hasOneThrough relation on one table. But Eloquent will not look it the...
How to make API Authentication for (User,Admin)two different table. I tried laravel passport but it'...
`public function toExcelDisc($schedule_id){ $dataArray = []; $header = $this->getHeader($schedul...
I need to sum values from my table but grouping month by month. Someone can help me?
Is it possible to update DB withoud edit form, just to generate random entires or set your own in co...
Hello Folks, My dev and I are trying to implement (DB) multi tenancy in a CRM and we are having issu...
I've gotten myself in a pickle trying to load records owned by a user with eager loading. I know I c...
When Call ->first() which returns record, then call ->delete(), then call ->first() again,...
Users Table Schema::create('users', function (Blueprint $table) { $table->bigIncrements('id'); $t...
I have to import excel sheet from laravel to database table. Student Table: studentid studentname sp...
alnomany liked this thread
The error I got : error pic: error # What I tried this is my table pic: table my form is like : <...
I have the following table structure: -projects -id -project_phases -id -project_project_phase...
There are two tables which are in different databases. Let's say one of them is Users and another is...
I have a large database table (~1 million records) which I need to purge the duplicate records. The...
I am trying to eager load data from a many-to-many relationship in eloquent laravel 5.8. The below c...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community