Support the ongoing development of Laravel.io →

zerozh

Joined 3 Sep 2015

Statistics

Threads 2
Replies 3
Solutions 1
Articles 0
posted 8 years ago

Use relationships of relationships as results but intend pagination

I am doing a simple social network like twitter. So we can follow someone, vice versa. The relations...

0 Likes
1 Replies
Solved

Extend Response::json in L5

I am adding something additionally in Response::json. For example, the Restful route to public funct...

0 Likes
3 Replies
replied 8 years ago

Use relationships of relationships as results but intend pagination

$followings = User::find(1)->followings()->paginate(null, ['ref_user_id']); $user_ids = []; fo...

0 Likes
Solved
replied 8 years ago

Extend Response::json in L5

It is hard to extend Illuminate\Http\Response. I try to use the middleware public function handle($r...

0 Likes
replied 8 years ago

Extend Response::json in L5

astroanu said: Something i did was define a method in the base controller and call it from my other...

0 Likes

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.