public static function getByAPIName($api_name) { $api_key_object = RedtrainApiKeys::where('api_name', '=', $api_name)->first(); if (!$api_key_object) { return null; } return $api_key_object->client; }
private function getKeysByName() { $this->matched_keys = \RTMatt\MonthlyService\RedtrainApiKeys::byName($this->auth_name); }