Support the ongoing development of Laravel.io →

4,603 Threads

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

Eager loading of several relationships

I've got a Restaurant, Review and User model Restaurants have reviews, which have a user I would to...

0 Likes
3 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

User edits on blade update database

Hey guys, I am fairly new to the Laravel framework. Currently in my blade I have a few fields that u...

0 Likes
2 Replies

Pagination with ajax not working

I´m using Laravel5.3. The problem is that the current Pagenum is not set. I mean I get the correct d...

0 Likes
1 Replies
Solved

file upload laravel problem

I've been 5 hours on this :( Cant find what is the error : ErrorException in ContestController.php...

0 Likes
2 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
posted 8 years ago

could not make create_user_table with this command. the path seems incorrect

Anuj@Anuj-PC MINGW64 /c/wamp/www/demoProject $ php artisan make:model User -m ←[32mModel created suc...

0 Likes
0 Replies

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

Pass ID to create action of RESTful controller

Hi people, i have a problem. I have a RESTful controller called SCHEDE. I want to insert new row in...

0 Likes
2 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

join pivot data in query (Many To Many Polymorphic Relations)

i have Many To Many Polymorphic Relations. post morphedByMany(postA) post morphedByMany(postB) post...

0 Likes
0 Replies
posted 8 years ago

Artisan connects to whole wrong host

Hello, I've got a problem setting up Attendize, which is based of Laravel. Now, I entered the creden...

0 Likes
3 Replies
posted 8 years ago

How to merge pivot data into an array of pivots?

The problem that I am having is that when I output the data from the database like this: $diets = Di...

0 Likes
1 Replies
Solved
posted 8 years ago

How can i connect to mariadb? Homested+Laravel on Windows

I installed the drivers into my Homestead + laravel, but i can't connect. how can configure my confi...

0 Likes
1 Replies

lockForUpdate on Controller->Service->Repository->Model pattern

Hi, I have a Controller that needs to process a form and then do some database checks that involve l...

0 Likes
0 Replies

How to use a count-aggregate function directly on a pivot table?

I am looking for the equivalent in Eloquent/ Laravel to the SQL statement SELECT label_id, COUNT(*)...

0 Likes
2 Replies

Database caching not working ?

Hello, I made a website that allow users to post pictures. Each user's page propore pulique his phot...

0 Likes
1 Replies

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.