Support the ongoing development of Laravel.io →

4,311 Threads

posted 10 years ago

Appends through relationship / eager load

I'm having trouble using $appends when retrieving a relationship using eager $with. Now this is just...

0 Likes
4 Replies

Saving form input in different tables with the same column name

Am new to laravel and am building screening app. How can i save the form inputs in these two table s...

0 Likes
0 Replies

best way to migrate already exist mysql database

hello, nice to start and migrate code from code-igniter to Laravel 5.1 but how I can find the best w...

0 Likes
2 Replies
Solved

Updating related tables

I'm having issues updating related tables. When displaying the form all data is correct (including r...

0 Likes
0 Replies

Count of records as relationship's return in Laravel 5.0

I want to get a count of records in table 'opinions', which is the relationship for my query. At thi...

0 Likes
0 Replies

Define relationships of a pivot table with more than 2 foreign keys

I cannot get my head on how to define the tables relationships when using a pivot table having more...

0 Likes
5 Replies

SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

I have designed a website with Laravel 4.2 , it runs correctly in my localhost (Xamp),but when I upl...

0 Likes
4 Replies

Query with relationship count operation

Hey, i'm doing a query in which i want to select all models with a column value smaller than their r...

0 Likes
1 Replies

Leak of memory when adding to database

Hello, My application import some large (7mb) csv files and parse them using "Maatwebsite/Larav...

0 Likes
5 Replies
posted 9 years ago

Baum, select specific category

Hi Guys, I'm busy testing baum for a few hours now. I want to find a category with a specific id and...

0 Likes
3 Replies

Manually created pagination always returning the full list

I couldn't use the paginate()-method anymore cause I needed to add an extra attribute to every eleme...

0 Likes
2 Replies
Solved

Get all subcategories ids

http://laravel.io/bin/zj5zq Here is my category tree I want to get all ids of subcategories from inf...

0 Likes
0 Replies

Custom Query

I have something that I'm trying to do that is probably against the norm, but here is what I'm doing...

0 Likes
0 Replies

package migrations not working in Laravel 5

When running the command: php artisan migrate --package="vendor/package" We get the respon...

0 Likes
13 Replies

Order By closest to today

I am trying to order a eloquent database call by date closest to today Something like this: o...

0 Likes
4 Replies
Solved

where method is not working correctly

I have a tinyint column named 'status' in the database which is created by boolean function of migra...

0 Likes
7 Replies
posted 9 years ago

Question regarding grouping models together using collections

Hey everyone, I am trying to have all group a lot of models into one accessible collection such as F...

0 Likes
0 Replies
posted 9 years ago

Class not found in polymorphic relation

I get class Page not found when I try to retrieve a field from Page. So on $section->sectionable-...

0 Likes
1 Replies

Get unassigned users in a many to many relationship

Hello. I am trying to get all users that are not currently assigned to a location in a many to many...

0 Likes
0 Replies
posted 9 years ago

Sorting by related field

I’ve got a problem that’s preventing me from finishing a page. I need to be able to sort by a relate...

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