Support the ongoing development of Laravel.io →

4,314 Threads

Places with distinct currency rates (some kind of smart eloquent query)

Hello, I have an app that should list points with its exchange rates. Basically, there are 2 main ta...

0 Likes
0 Replies

Illuminate\Database\Eloquent\Factory bug

In my testcase when I try to create a model by factory like the following $factory->defineAs(App\...

0 Likes
2 Replies
posted 9 years ago

How to get items in a hierarchical category

Men (parent_id 0) Men 1.2 -- Men 1.3 (2 product) ---- Men 1.4 (1 product) I need to get all items...

0 Likes
2 Replies
posted 9 years ago

Override find()

I'm trying to override the find method, but for some reason it's stuck in an endless loop. It's the...

0 Likes
3 Replies
Solved

Combine multiple queries

I try to make a search engine for users. The search will be with multiple fields so as the user can...

0 Likes
0 Replies

Localization - Dynamically filling the language files from database

I'm currently porting an app from Codeigniter to Laravel and was looking to implement some functiona...

0 Likes
4 Replies

Database records -- Select from time range, group by ID, sum numeric columns

Hi guys, I'm fairly new to Laravel (and web dev), but I'm trying to build a project for work. I'll t...

0 Likes
3 Replies
Solved

Observing pivot tables

I've seen a lot of posts here about this but no solution. Is there any method to observe pivot table...

0 Likes
0 Replies

Is it possible to pass a second argument to edit and update methods of a controller?

I need to pass a second argument to edit and update methods of a controller like: public functi...

0 Likes
2 Replies

Button for Download

I'm saving the files in a folder, but I want to make available for download . How do I do that ?

0 Likes
1 Replies

Curious about $factory

Hello, I've been building my app for a while with Laravel 5.1, and I'm still a total newbie with thi...

0 Likes
0 Replies

Querying Relationships Tables

Hi friends, do you can help me? I need construct a query for view (empleados.index), parsing data fr...

0 Likes
0 Replies
posted 9 years ago

Is there any way to add attribute to objects in collection?

Hello, I finally understood Collections. However, I am looking to add an attribute (pulled from an e...

0 Likes
0 Replies

How Can I "Request" the data of a collection of rows?

I want to build a web based system to keep track of students attendance. I have these three tables r...

0 Likes
0 Replies

How to use OrderByRaw to get posts from database?

I currently have this code: $sidebar = Post::where('published', '=', '1')->orderByRaw("RAND(...

0 Likes
2 Replies
Solved

How to add variables to file upload form and fetch it from the route?

How do i add the value of $course->id to this form so the my route::post(/course/{id}.......... w...

0 Likes
0 Replies

Order results

I want to order the result of a decreasing form of consultation. I'm trying this: $call = App\Call::...

0 Likes
4 Replies
Solved

How do I access pivot table columns?

Following the code below and it keeps saying the pivot property is NULL. There must be something wro...

0 Likes
3 Replies

Change SQL query on Auth, Laravel 5.1

When logging in, the query fails, because "email" is not on "usuario", it's in &...

0 Likes
6 Replies
posted 9 years ago

Scope to check for existence of a relationship

I'm building a site concerning nightclubs, events and booths - the idea is a user can book booths fo...

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