Support the ongoing development of Laravel.io →

4,314 Threads

posted 10 years ago

How to build a dynamic search query based on form inputs

I am new to Laravel and Eloquent. Would someone please recommend an approach with Eloquent to dynami...

0 Likes
3 Replies
posted 10 years ago

Relation Madness, Recursive Dependency

Hello, I am having a problem with creating my models. I have 2 models, User , and Safe (the user's &...

0 Likes
1 Replies
posted 10 years ago

Multi site, multi tenant repository structure in L5

Dear Laravel.io members, Last month I started with getting known to L5. I'd like to create a multi-s...

0 Likes
1 Replies

Displaying Year Over Year Revenue

I appreciate any response to this. I don't need any code examples, but mainly direction or perspect...

0 Likes
6 Replies
Solved

create multiple products for one invoice

Hi all, i have a form that should me make a creat one invoice. One Invoice hasMany Products. So i ca...

0 Likes
2 Replies

Intermittent non-booting of Eloquent Model Trait

I have a trait with a boot method that adds an observer to the model which sets a field on creating....

0 Likes
1 Replies
posted 10 years ago

Model not found

Ok, I'm sure it simple, but I've been pulling my hair out on this one... My model file: Handicap.php...

0 Likes
1 Replies

Error debugging

It seems like errors are more vague than they used to be. When there was an error, it used to displa...

0 Likes
0 Replies

error when trying to use stored procedure

i'm using mysql and a stored procedure. my model looks like this class TaskAssignment extends Eloque...

0 Likes
2 Replies
Solved

Repository pattern + Eloquent problem with Liskov Principle

Hiya guys! I'm implementing Repossitory pattern for my Eloquent model. I actually have a little prob...

0 Likes
0 Replies

Eager-loading a hasOne relation

I have a Show model with a show_type column. This is a hasOne relationship to a ShowTypes model. The...

0 Likes
1 Replies
posted 10 years ago

Paginate & Distinct

Hi, I'm using the same model ,e.g. query for displaying paginated results and total results. The re...

0 Likes
5 Replies
posted 10 years ago

Model::firstOrNew() error

Can someone explain me why i get this error below? I dont realy understand it. Please explain for pe...

0 Likes
0 Replies

How to check columns currently selected

I'm using the following code to make a automatic join with the Model's relationship so I can pull so...

0 Likes
0 Replies

Can a model have a dynamic table it relates to?

I am sent postcode/ZIP tables on a quarterly basis. They are named yyyymm_postcode (eg "201504_...

0 Likes
1 Replies
Solved
posted 10 years ago

eloquent using groupBy and orderBy

Hi guys, Do you know how I can rewrite this query so that orderBy actually works? http://laravel.io/...

0 Likes
3 Replies

oAuth twitter Email support

Hello, do you have any idea about a workaround getting an email address for oAuth twitter user for S...

0 Likes
0 Replies

Invalid argument supplied for foreach()

In Controller $issues = DependencyIssue::with('levels')->get(); And in view I am trying to acces...

0 Likes
2 Replies
Solved

Create model by extending Eloquent or Model class

I am new to Laravel. I have seen few tutorials and few code snippets on stackoverflow.com. Few show...

0 Likes
0 Replies

create model problem

Hi Guy: When i create a model, for some reasons artisan also create Migration files. see below ubunt...

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.