You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is my first interaction with git so I hope am doing it right, there's this API that I'm trying to use querybuilder on,
this is my controller
public function searchTournments() { $tournments = QueryBuilder::for(Tournment::class) ->allowedFilters(['game_id','team_size_id','playoff_id','mode_id','skill_id']) ->get(); return $tournments; }
when I run my route without any parms it runs fine and gets all the rows but whenever I attach any parms in it returns this error instead
Call to undefined method App\Models\Tournment::get2Attribute()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
this is my first interaction with git so I hope am doing it right, there's this API that I'm trying to use querybuilder on,
this is my controller
public function searchTournments() { $tournments = QueryBuilder::for(Tournment::class) ->allowedFilters(['game_id','team_size_id','playoff_id','mode_id','skill_id']) ->get(); return $tournments; }
when I run my route without any parms it runs fine and gets all the rows but whenever I attach any parms in it returns this error instead
Call to undefined method App\Models\Tournment::get2Attribute()
any help would be appreciated
Beta Was this translation helpful? Give feedback.
All reactions