You only need the hasMany if you need to resolve something going the other way. In my above example...
Small correction on the previous comment: Route::get('{location}/{category}/{subcategory}/{item}', f...
If you've setup the belongsTo relationship between Post and Author, Eloquent will handle this for yo...
When your controller interacts with your FooRepository and your FooRepository executes and returns:...
I'm glad it worked. To elaborate a bit (and for anyone else that might stumble on this), if you look...
The Laravel portal for problem solving, knowledge sharing and community building.
The community