'firstname', 'nachname' => 'lastname', 'spitzname' => 'nickname', 'staatsangehoerigkeitText' => 'other_country', 'strasse' => 'address', 'nameZusatz' => 'further_address', 'plz' => 'zip', 'ort' => 'location', 'id' => 'id', 'telefon1' => 'main_phone', 'telefon2' => 'mobile_phone', 'telefon3' => 'work_phone', 'telefax' => 'fax', 'email' => 'email', 'emailVertretungsberechtigter' => 'email_parents' ]; protected $guarded = []; public static function fromNami($item) { $item = collect($item) ->only(array_keys(static::$overviewAttributes)) ->mapWithKeys(function($item, $key) { return [ data_get(static::$overviewAttributes, $key, $key) => $item ]; }) ->toArray(); return (new self($item)); } public function __construct($member) { parent::__construct($member); } }