Support the ongoing development of Laravel.io →

jacobbrunson

Joined 17 Jun 2014

Statistics

Threads 1
Replies 3
Solutions 1
Articles 0

Pagination "per page" query var

Hi there, in my application I want to return a paginated list of users. I would also like the number...

0 Likes
1 Replies
replied 10 years ago

Help me with relations please ^^

Hi, on line 9 of your controller, try changing $weapon = Auth::user()->weapons(); to $weapon = Au...

0 Likes
Solved
replied 10 years ago

Creating and using models

Is there a particular reason that you aren't using Eloquent? This seems like a good use case. Create...

0 Likes
replied 10 years ago

Help me with relations please ^^

You should have two models: User and Weapon. user_weapon is the name of the pivot table. You don't n...

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.