2022-02-19 15:18:24 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Setting;
|
|
|
|
|
|
|
|
use Spatie\LaravelSettings\Settings;
|
2022-02-19 18:06:07 +01:00
|
|
|
use Zoomyboy\LaravelNami\Api;
|
|
|
|
use Zoomyboy\LaravelNami\Nami;
|
2022-02-19 15:18:24 +01:00
|
|
|
|
|
|
|
class NamiSettings extends Settings
|
|
|
|
{
|
|
|
|
public int $mglnr;
|
|
|
|
|
|
|
|
public string $password;
|
|
|
|
|
|
|
|
public static function group(): string
|
|
|
|
{
|
|
|
|
return 'nami';
|
|
|
|
}
|
|
|
|
|
2022-02-19 18:06:07 +01:00
|
|
|
public function login(): Api
|
|
|
|
{
|
|
|
|
return Nami::login($this->mglnr, $this->password);
|
|
|
|
}
|
2022-02-19 15:18:24 +01:00
|
|
|
}
|