*/ public array $search_params; public static function group(): string { return 'nami'; } public function login(): Api { return Nami::login($this->mglnr, $this->password); } /** * @inheritdoc */ public function rules(): array { return [ 'mglnr' => 'required', 'password' => 'required', 'default_group_id' => 'required', ]; } public function localGroup(): ?Group { return Group::firstWhere('nami_id', $this->default_group_id); } public static function title(): string { return 'NaMi-Login'; } /** * @inheritdoc */ public function viewData(): array { return [ 'data' => [ 'mglnr' => $this->mglnr, 'password' => '', 'default_group_id' => $this->default_group_id, ] ]; } }