Support the ongoing development of Laravel.io →

4,311 Threads

Baum Nested Set, share to view triggers hierarchy queries

I'm using the Baum Nested Set package, which works very well. In one place in my code, I need to lis...

0 Likes
0 Replies
posted 10 years ago

Formatting Eloquent HasMany eager load results

I'm making a JSON API and have some nested fields I'm pulling in with an eager load. Here's the code...

0 Likes
0 Replies

Take not working with Eager Load Constraints

Problem I'm trying to use Eager Load Constraints with a take condition it keeps returning null in th...

0 Likes
0 Replies
posted 10 years ago

Model events not fired

I'm having trouble firering model events. currently I have the following <?php use Illuminate\Da...

0 Likes
0 Replies

Eager loading with multiple relations

I wish to list a member with events he/she participates, and his/her collar numbers (idnumbers) for...

0 Likes
5 Replies
Solved

Eloquent query relations.

Hi, can someone halp me with this problema. I want load events based on city_id stored in locations...

0 Likes
0 Replies

Eager loading error - Trying to get property of non-object

I'm trying to utilize the eager loading feature in laravel but it doesn't work as i expected. When i...

0 Likes
0 Replies

Help with ordering related models

I'm trying to order my data, by the "belongsTo" association. Model: Contact BelongsTo: Age...

0 Likes
0 Replies

Relationships issue (maybe me doing something wrong HELP!)

I have the following controller and models. Controller public function index($slug) { $d...

0 Likes
6 Replies
Solved

Build query with ckeckboxes values.

Is there a way to build a query on checkboxes values? I have 7 checkboxes, then only if a single che...

0 Likes
0 Replies

Retrieve data from lookup table

Hi there, I'm very new to Laravel and I'm creating a dummy blog application to help me understand th...

0 Likes
1 Replies

Value objects validation

Hello, so i am creating value Money( 500, Currency('EUR') ). What would be the best approach to vali...

0 Likes
0 Replies

call to undefined method where()

Hi ! I've a problem with a fresh install of laravel 4 I make a migration files with some columns and...

0 Likes
1 Replies

Laravel auth == true after User::create ?!

No user is currently logged in. Why after I create a user using a User::create() model (my applicati...

0 Likes
3 Replies
Solved

How can I debug an eloquent result ?

Hi, How can I debug the result of this please ? $result = $this->hasMany('UserGrade'); count($res...

0 Likes
2 Replies

Laravel takes the authentication data from another computer on the network

I use laravel framework (v4.2.4) with the auth provider. I have two accounts: Kees Piet When I log i...

0 Likes
0 Replies
posted 10 years ago

Soft Deleting with a Relationship

I have a book and author table. A author has many books. A book has one author. I wish to soft delet...

0 Likes
5 Replies

one through one relationship

I'm still working on my timesheet webapp. As for database hierarchy I have the following: user tabl...

0 Likes
0 Replies

Tracking Balances

Hello, Just looking for an opinion here, as I can't get my head round what seems to be a trivial pro...

0 Likes
1 Replies

Some mandatory parameters are missing ("products") to generate a URL for route "admin.products.update"

Hi, today i'm doing a web shop wuth Laravel Framework. Accident i got this error : Some mandatory pa...

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

© 2024 Laravel.io - All rights reserved.