Support the ongoing development of Laravel.io →

troydavisson

Joined 27 Feb 2014

Statistics

Threads 0
Replies 6
Solutions 2
Articles 0

troydavisson has not posted any threads yet

replied 10 years ago

Relationships, Controllers, and Views

You only need the hasMany if you need to resolve something going the other way. In my above example...

0 Likes
replied 10 years ago

Beginner routing question

Small correction on the previous comment: Route::get('{location}/{category}/{subcategory}/{item}', f...

0 Likes
replied 10 years ago

Relationships, Controllers, and Views

If you've setup the belongsTo relationship between Post and Author, Eloquent will handle this for yo...

0 Likes
Solved
replied 10 years ago

Repository pattern: how to access related repository's method?

When your controller interacts with your FooRepository and your FooRepository executes and returns:...

0 Likes
replied 10 years ago

Call to undefined method Illuminate\Database\Query\Builder

I'm glad it worked. To elaborate a bit (and for anyone else that might stumble on this), if you look...

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.