Support the ongoing development of Laravel.io →

4,311 Threads

posted 8 years ago

Attributes field empty

Hi, New to L5, but long time L4 user. I've a fairly new copy of L5 installed, and have the following...

0 Likes
2 Replies

whereBetween

whereBetween() takes a field and an array. Is there a way to do a between on 2 fields with an input?...

0 Likes
3 Replies

Common time window

I have list of supplier with their working hour for each day with intervel of 60mi from opning hour...

0 Likes
0 Replies
posted 10 years ago

Combining the use of pagination and filtering collections

I have written some code that allows the user to filter a collection of activities by certain attrib...

0 Likes
5 Replies
Solved

Undefined property: Illuminate\Database\Eloquent\Relations\HasMany::$due_date

I'm trying to create a collection of items that are over due. Here's my code Transaction.php /**...

0 Likes
1 Replies
Solved

Eager load a polymorphic relation with a constraint

Hello all! I am not a professional programmer but I am trying to develop an application for my perso...

0 Likes
0 Replies

Best Practice, many tables and many models?

Hi, So my app will have around 30 - 40 tables and therefore similar amount of models. It seems weird...

0 Likes
0 Replies
posted 8 years ago

Overriding Eloquent attributes

Hi all Hoping somebody can help me improve this solution. I am trying to create an override structur...

0 Likes
3 Replies

Artisan Tinker exception

Hi all... Sorry if is a noob question, i'm new to Laravel. When i do a simple command like this one:...

0 Likes
1 Replies
Solved

Override Password encryption method for User model

Hi All I am using Laravel on top on an existing database. Another application is still also using th...

0 Likes
3 Replies
posted 8 years ago

Laravel Query returning Null ids

Okay I have a some code written to retrieve data from some left join in my database, after retrievin...

0 Likes
1 Replies

Query Builder - "orderBy()" when fetching data with "with()"

Hi all! I've got an Order model that hasOne('customer') bind to itself. I want to query something li...

0 Likes
5 Replies

Is there a way to sort whole collection based on related model.

Hi, all. I have a query builder question. I want the result to be sorted by a field in a related mod...

0 Likes
0 Replies

MySQL partitions and Schema Builder

Hi, I will start working in a new project that requires a massive database (tens of million rows) in...

0 Likes
0 Replies

Table reverting to old name, hidden variables?

I started playing around / learning laravel. Got everything set up and made a few models: artists s...

0 Likes
2 Replies

eager load with sum() on relations

Hi Artisans, I am trying to figure out how to reduce number of queries when I am doing this kind of...

0 Likes
1 Replies

Nested relationships Model::with query

Im trying to simply get a tree back from eloquent. Windows::with('event.action'); returns all action...

0 Likes
0 Replies

Eager loading, collection of relations

Hi guys, How to get results of secondary query? Ofc I could merge all related collections: $paramet...

0 Likes
0 Replies

DB::raw as a parameter in another select statement.

Is it possible to make the customized column in database inside a new select clause using DB::raw()?...

0 Likes
0 Replies

Turn off eloquent events?

Is it possible to turn off eloquent events? Just temporarily, to stop myself getting into an event l...

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