Support the ongoing development of Laravel.io →

4,236 Threads

Sql Server Date format issue

Hello, First of all I'd like to say that I have no other choice but using SQL Server ( and IIS as we...

0 Likes 6 Replies
Solved

Laravel Query

Hi Guys I have three tables in my database customer, sales, payment . A customer can have many Sales...

0 Likes 0 Replies

Eloquent Has with multiple databases

I'm experiencing trouble with a relationship (5.7). I do have data separated in two databases, which...

0 Likes 0 Replies

hasOneThrough on one table

Hello, I'm trying to set up a hasOneThrough relation on one table. But Eloquent will not look it the...

0 Likes 0 Replies

How to make Laravel api multi-auth with or without passport

How to make API Authentication for (User,Admin)two different table. I tried laravel passport but it'...

0 Likes 0 Replies

Object of class stdClass could not be converted to string

`public function toExcelDisc($schedule_id){ $dataArray = []; $header = $this->getHeader($schedul...

0 Likes 1 Replies

How to add table values by grouping by month

I need to sum values from my table but grouping month by month. Someone can help me?

0 Likes 0 Replies

CRUD update with button from blade

Is it possible to update DB withoud edit form, just to generate random entires or set your own in co...

0 Likes 0 Replies

Trying to implement multi tenancy (DB)

Hello Folks, My dev and I are trying to implement (DB) multi tenancy in a CRM and we are having issu...

0 Likes 0 Replies

Constrain Eager Loading on Polymorphic Child (5.8)

I've gotten myself in a pickle trying to load records owned by a user with eager loading. I know I c...

0 Likes 0 Replies

Eloquent Caching does not updated on delete relation of rel`

When Call ->first() which returns record, then call ->delete(), then call ->first() again,...

0 Likes 0 Replies

Belongs Via Eloquent support

Users Table Schema::create('users', function (Blueprint $table) { $table->bigIncrements('id'); $t...

0 Likes 0 Replies

Manage Collection of Model Objects

I'm trying to make my notifications for Laravel 6 mail out effectively. I have a model (Event) that...

0 Likes 1 Replies
Solved

Laravel import excel data with eloquent relationship

I have to import excel sheet from laravel to database table. Student Table: studentid studentname sp...

1 Likes 0 Replies

Update is not working

The error I got : error pic: error # What I tried this is my table pic: table my form is like : <...

0 Likes 4 Replies

nested eager loading with constraints from the query

I have the following table structure: -projects -id -project_phases -id -project_project_phase...

0 Likes 0 Replies

is it possible to define relationships in Eloquent models of

There are two tables which are in different databases. Let's say one of them is Users and another is...

0 Likes 0 Replies

Delete duplicates records from large collection

I have a large database table (~1 million records) which I need to purge the duplicate records. The...

0 Likes 0 Replies

I am trying to eager load parameter in eloquent laravel 5.8

I am trying to eager load data from a many-to-many relationship in eloquent laravel 5.8. The below c...

0 Likes 1 Replies

when i use pagination with alias columns i get an error

Schema::create('costs', function ($table) { $table->increments('id'); $table->unsignedInteger(...

0 Likes 0 Replies

Thanks to our community

Solutions given in the past year.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.