Support the ongoing development of Laravel.io →

4,314 Threads

Who is calling beginDatabaseTransaction() method on DatabaseTransactions trait (Laravel 5.1)

Hi, I'm using DatabaseTransactions trait to have transactions on tests. I have custom connections on...

0 Likes
1 Replies
Solved

Laravel 4.2 Validation affected by Pagination

Hey all, I have a form being validated that works fine when i'm using $results = $query->get(); b...

0 Likes
1 Replies
Solved

GROUP_CONCATE() in Laravel 5

How can I use this "SET GLOBAL group_concat_max_len = 1000000;" statement in Laravel 5 ??...

0 Likes
1 Replies

Join is breaking my relationships

I need to use a join so that I can sort by a column in the joined table. But that join is interferin...

0 Likes
3 Replies
posted 9 years ago

One to many? Pivot?? Help!

I'm getting totally confused trying to recreate what is a simple task with raw SQL. Basically I have...

0 Likes
0 Replies

How to make a variable Database call?

I'm trying to set up a single Controller that will be passed a variable name from the route. I'm not...

0 Likes
10 Replies
Solved

Pagination always returns the first page

I've been trying to get this going for a day or so now, and I just can't make sense of this issue. F...

0 Likes
5 Replies

HasMany relationship query builder

Hi, I am having trouble building a simple query. I have a 3 models Photo, Post and Tag. Tag model is...

0 Likes
2 Replies

Save the change of the checkbox-state on DB

Hi everybody! I have a view that shows a list of tasks. Each task has a checkbox that shows if it's...

0 Likes
4 Replies
Solved

Persist Eloquent query builder object

I'd like to build a feature into my app that allows the user to save filters similar to Atlassian's...

0 Likes
0 Replies

Laravel eloquent two has many relation

I've tried it too many times but I still can't get it. I am trying to make a custom tour app with la...

0 Likes
0 Replies

Error when run 'php artisan db:seed'

I follow this tutorial: https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-larav...

0 Likes
1 Replies

Cleaner way to do this?

Hello, I am doing a users report page with laravel, and I'm using @if in views to show a error messa...

0 Likes
2 Replies
Solved

Trying to do inner join and find/where not sure which to use, complete new laravel user

$leverancier = DB::table('leveranciers') ->where('leveranciersId', '=', $id) ->join...

0 Likes
2 Replies

change return of paginate()

hello to every one, at first sorry for my bad english. hi to everyone, I have a issues with a route...

0 Likes
1 Replies

Postgres 9.4 new question mark operator can't be used in eloquent raw queries

The question mark allows to search values in JSONB array: SELECT * FROM tracks WHERE artistnames ? '...

0 Likes
2 Replies
Solved
posted 9 years ago

Overwrite model attribute with a value from related model

I've got a model for product, and a model for a sale - the product has a price, and the sale has sta...

0 Likes
2 Replies
Solved

Laravel 4 Pagination Working incorrectly (Append query string to paginator?)

I'll start by saying i've already consulted the Laravel 4 documentation on Pagination and tried many...

0 Likes
1 Replies
Solved

Get avg in single query

Can any one please help me how to get all column and avg of a column in a single query without using...

0 Likes
2 Replies

Pagination shows everything on each page

Hello, I am trying to build a webshop in laravel 4.2. I am almost done with everything but in the la...

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.

© 2025 Laravel.io - All rights reserved.