Support the ongoing development of Laravel.io →

4,311 Threads

User->Purchase->Details help

Hello, I need help with the following structure in laravel: - User id - Purchase id user_id - Deta...

0 Likes
0 Replies

Route to delete method

Hi, I'm having troubles to define a delete route, can someone showme an example about how to define...

0 Likes
2 Replies

Eager Loading error on my Entities when i migrated from 5.1 to 5.3

User.php <?php namespace ESP; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloq...

0 Likes
0 Replies

Query in foreach Loop in Blade

Dear all, I am quite new at Laravel. I have a Product Model and a Category-Model. Each Product has o...

0 Likes
1 Replies

Select only unique columns

Group by is problematic since I switched to PHP 7 and having aggregate values doesn't apply to the w...

0 Likes
8 Replies

How to use sjousse/laravel-unique-reference

I'm new to laravel. I'm using sjousse/laravel-unique-reference I don't know how to configure/ genera...

0 Likes
0 Replies

BadMethodCallException give in eloquent

i have error with my laravel 5.3 when getting data from database this is my controller code publ...

0 Likes
1 Replies

How to get data from one to many relation.

Hello everyone. I have a small problem. I got two models: User and Group. They are connected by one...

0 Likes
4 Replies
Solved
posted 8 years ago

Eloquent find() changed return from 5.1 to 5.3?

I recently updated my app from 5.1 to 5.3 and it appears to have changed the return of the Eloquent\...

0 Likes
1 Replies

Struggling Where to Put Domain Logic

Hey all, I've been leaning a lot about design patterns and the IoC in the past couple of weeks, and...

0 Likes
11 Replies
Solved

"with" or "load" causes all objects loaded

Hello All, This is my first post on this forum, so I'd like to send warm hello and thank You in adva...

0 Likes
5 Replies
Solved

belongsToMany three table

Hello. I have problem with relationship three table. We have the tables users - id - username compa...

0 Likes
2 Replies

Trouble getting value from object. Or how to get distinct date from dateTime column in a table.

So I have a query that looks like $atten = Attendance::select( DB::raw('DATE(tStamp)') )->group...

0 Likes
0 Replies

Two Many-To-Many relationships help

I have the following scenario. I have 3 main tables: Countries Job possition Income *** Income tab...

0 Likes
2 Replies

getting exception 'Illuminate\Foundation\Auth\User' not found' in production server

Hi , I code works fine when i run it in homestead box , where as it shows following error when i ran...

0 Likes
1 Replies

withPivot() Returns Incorrect Value

See Source Code Question Why does the following code return the pivot value for the original attribu...

0 Likes
0 Replies

Laravel 5.3 Eloquent : belongsToMany x2 issue

Hello there, Following up one Laracast about Roles & Permissions, I'm trying to figure out a way...

0 Likes
1 Replies

How Do I Cache Using Eloquent Models?

Hi! I'm new to Laravel, and I have a problem with caching rows using Eloquent. I'm currently retriev...

0 Likes
1 Replies
Solved

Do factories use transactions?

I also posted my question on laracast, but perhaps anyone here has the answer. Topic on laracast I'm...

0 Likes
0 Replies

Query items that have all categories

Hi, I have a Shops model associated to services, using a pivot table: public function services() {...

0 Likes
1 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.