Support the ongoing development of Laravel.io →

4,311 Threads

posted 9 years ago

Eloquent query doesn't return relation, even though it exists within the database

Hey there! I'm having an issue with Eloquent in L4, where a query containing a ::with(array(...)) do...

0 Likes
0 Replies

Laravel Production Site Database Configuration

Is there a way to use php artisan migrate command on a live shared hosting? I'm using ftp so I don't...

0 Likes
5 Replies
Solved

Form submission to the same page

I'd like to know what would be the best way to post a form to the same page? I have a standard page...

0 Likes
4 Replies
Solved
posted 9 years ago

My global query scope causes stack overflow

I'm trying to replace a query scope with a global query scope, but while my query scope works fine t...

0 Likes
1 Replies

Tree stucture / Nested navigation etc (without Nested Set model)

Hi, I know this has been asked a few times, but I've not managed to find specific information detail...

0 Likes
3 Replies

Get data from model problem

I have model and return data from this model. public function getData($meioeco_data_id, $stanowisko_...

0 Likes
0 Replies
posted 9 years ago

eloquent select problem when attribute

When I do a select in a relationship, the model needs the other relation-referalls, otherwise I rece...

0 Likes
0 Replies

Issue with Pagination

If I add this code to my query: ->leftJoin('event_schedule', function($join) { $join->on('ev...

0 Likes
0 Replies

What is 'removeTableFromKey' for?

Hi! I'm reviewing source code and found 'removeTableFromKey' in this line: /** * Fill the model wit...

0 Likes
0 Replies
posted 9 years ago

Issue saving hasOne / belongsTo relation without triggering an infinite loop.

I have a User model that hasOne profile and $with=['profile'] I have a Profile model that belongsTo...

0 Likes
0 Replies

Help on relations please

Hello, I will really appreciate any help provided in this case, it's probably very simple but even t...

0 Likes
7 Replies

Help me for Multi Auth in Laravel

hi, i'm newbie can you help me... I get an assignment from my teacher to make auth i have two table...

0 Likes
5 Replies

Laravel 5 connecting to a second database

The DB::connection seems to work but when I am using DB::table it is still looking at my 1st default...

0 Likes
2 Replies
Solved
posted 9 years ago

how to access Models in ServiceProviders

whenever i access a model in service provider it returns an error: Call to a member function connect...

0 Likes
0 Replies

Schema suggestions for one slot per day of week

I'm creating a scheduler that for each location has a start and end time for each day of the week. N...

0 Likes
0 Replies

isDirty('atrribute') not picking up changes?

Hi, I am trying to run a function only when certain values have been changed, however isDirty doesn'...

0 Likes
1 Replies
Solved

Error when trying to get Eloquent relation in a loop

I've been wracking my brain for hours on this one. So I've got a products ---> product_images tab...

0 Likes
1 Replies

Laravel Pagination

I use a form to filter all the data. But when i go to page 2 or any other, i get all the data instea...

0 Likes
4 Replies

Efficient way of ranking information from a database.

Hello, I'm fairly new to Laravel, and I'm working on making a leaderboard for a game. I'm wondering...

0 Likes
1 Replies
posted 9 years ago

StdClass to Eloquent

I have a query that return me the result as array of StdClass. How I can converte to Eloquent?

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