Support the ongoing development of Laravel.io →

4,314 Threads

posted 9 years ago

Respond JSON of Object including relations

Hey there, I want to respond to a GET request for an object id with the requested object and all its...

0 Likes
2 Replies
Solved

informix connection with laravel

I find no way to connect with informix through eloquent?

0 Likes
1 Replies
posted 9 years ago

Found an interesting bug

I found an interesting bug which I'll share here. Hopefully it will save someone time. Consider this...

0 Likes
0 Replies
posted 10 years ago

Attribute casting, Date Mutators on pivot table of related models

Sorry for this crosspost, I already asked my question on Laracast, but no response came, that's why...

0 Likes
2 Replies

Need Calendar Event for Laravel 5

Hello, I have a Market Model. I need to add the open/closed function with a Calendar Event and didn'...

0 Likes
4 Replies
Solved

Proper API JSON pagination

Hello everyone. I'm kinda new to Laravel so sorry if this is a noob question. I have an API controll...

0 Likes
3 Replies
Solved
posted 9 years ago

How can I use onWriteConnection() to create new user?

$user = new \App\User::onWriteConnection(); $user->name = \Input::get('name'); //... $user->st...

0 Likes
2 Replies
Solved

Laravel eloquent modelling is getting buggy?

Hi, I am create multi-relation system on tables, and return $staff i get whole data successfully.Its...

0 Likes
2 Replies
Solved

Proper/best way to access user data

Hello everyone! I'm new to Laravel and I'd want to know the proper/best way to access the currently...

0 Likes
3 Replies

Cant find a solution in Query

hi all, i need to execute the following query as iam new to laravel, i cant find what went wrong in...

0 Likes
0 Replies

Polymorphic Relationship with eager loading other relationships

Hey guys, im currently working on a project with a polymorphic relation and im trying to combine it...

0 Likes
3 Replies

UPDATE won't work

edit.blade <label align="center" > {!!$post->id!!}</label> <textarea rows="5" cols...

0 Likes
0 Replies

(new to Laravel) Class not found in the Controller

I've making my first laravel applications based on some phpacademy tutorials on youtube. Seems like...

0 Likes
3 Replies
Solved

L5 Route model bind not working.

hello, My L5 route bind is not working. My controller is in another namespace. I tested the data exi...

0 Likes
0 Replies

[Package] Versioned Eloquent models

About a month ago there was a conversation on reddit.com/r/Laravel about how to do versioning on Elo...

0 Likes
0 Replies

How to create logic for 'users who view my profile' ?

Hi, It might be a noobish question but I'm not sure how to write this logic... Lets say I have Blog...

0 Likes
2 Replies

Ability for packages to easily add mutators for attributes/columns based on their type.

Hi, currently it's quite hard to make good interfaces for special column types in Eloquent, like geo...

0 Likes
1 Replies

Laravel multi auth problem

Hi i am using laravel 5, I create the admin panel everthing is perfect. I group users 3 categories....

0 Likes
4 Replies
Solved

Pivot for different destination table

I am going crazy... I have: a Test model and a tests table (Id,name,some other fields) a Module mod...

0 Likes
1 Replies

getting related models randomly with a limit

greetings! so, i want to get X random models from a parent: i have sub-categories and they have many...

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

© 2025 Laravel.io - All rights reserved.