mysql - Why does this join return [ ] No Properties -


i stumped this.

i trying join records 2 tables. easy enough.

here query;

return player::join('played_games', 'played_games.playerid', '=', 'players.id')         ->where('players.teamid', '=', $team->id)->get(); 

if remove clause array of objects expect try add where, array no properties. also, if drop join, clause me records looking for. don't seem work together.

what missing?

thanks.

edit

the join method performing inner join on played_games , players tables , method returns collection of matching records.

this laravel 5.2 app (should have mentioned that!)


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -