Support the ongoing development of Laravel.io →

4,311 Threads

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 9 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 9 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 9 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

Validation rules and multiple DB connections

Hello! I'm encountering an issue with form validation and user storage. I have two database connecti...

0 Likes
3 Replies
Solved

Getting url data to show in the url bar

I'm using Laravel 4 and I'm trying to get the url bar to display the text url that is saved in the d...

0 Likes
0 Replies

What's the best test-friendly method to use Cache in models?

Hi, I've been looking at Cache docs: http://laravel.com/docs/5.0/cache I want to use Cache in my mod...

0 Likes
0 Replies

Relationship Help

I am moving an older app from another framework into Laravel 5 and have the relationships set up in...

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.