/** * Populates an auth item with the data fetched from database * @param array $row the data from the auth item table * @return TaxonomyTerm the populated auth item instance (either Role or Permission) */ protected static function populateItem($row) { return TaxonomyTerm::create(['id' => $row['id'], 'vid' => $row['vid'], 'name' => $row['name'], 'description' => $row['description']]); }