Hey, I'm hoping there is a good solution for this: What I have is a template that I want to use for...
Hey, so I'm looking to return a model with a where clause that's on the related table. So it would l...
Hey, not sure how this is done using Query Builder? I want to do something like this: getDetails($id...
Hey, Not entirely sure if I'm overthinking this, but on my site there are user profiles, and I want...
Hey, I'm trying to do a nested count and why it's just not going. Here are all the details: http://l...
Oh beautiful, that's exactly what I was looking for, thanks!
The solution I came up with is this: $tableA = TableA::with('tableB') ->join('tableB', 't...
Yeah I guess I'll just go with ID for now. This idea is sort of in conjunction with the theme of the...
Hmm okay... well I think I'd add an index to the field. Sorry I wasn't being totally specific, it is...
$values = ['name' => 'Ricardo', 'drink' => 'coffee']; $str = "Hello " . $values['nam...
The Laravel portal for problem solving, knowledge sharing and community building.
The community