belongsTo(GameSession::class, 'game_session_id'); } /* |--------------------------- | Helper methods |--------------------------- */ // Check if this shot is a goal public function isGoal() { return (bool) $this->result; } }