adrema/app/Mailgateway/MailgatewaySettings.php

34 lines
612 B
PHP
Raw Normal View History

2023-06-01 15:02:35 +02:00
<?php
namespace App\Mailgateway;
2024-10-24 23:17:23 +02:00
use Modules\Mailgateway\Models\Mailgateway;
2024-08-01 11:17:49 +02:00
use App\Mailgateway\Resources\MailgatewayResource;
2023-06-01 15:02:35 +02:00
use App\Setting\LocalSettings;
/**
* @deprecated
*/
2024-08-01 11:32:14 +02:00
class MailgatewaySettings extends LocalSettings
2023-06-01 15:02:35 +02:00
{
public static function group(): string
{
return 'mailgateway';
}
2024-08-01 11:17:49 +02:00
public static function title(): string
2023-06-01 15:02:35 +02:00
{
2024-08-01 11:17:49 +02:00
return 'E-Mail-Verbindungen';
2023-06-01 15:02:35 +02:00
}
2024-08-01 11:17:49 +02:00
/**
* @inheritdoc
*/
public function viewData(): array
2023-06-01 15:02:35 +02:00
{
2024-08-01 11:17:49 +02:00
return [
'data' => MailgatewayResource::collection(Mailgateway::paginate(10)),
];
2023-06-01 15:02:35 +02:00
}
}