2024-06-27 00:00:29 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Fileshare;
|
|
|
|
|
2024-08-01 11:17:49 +02:00
|
|
|
use App\Fileshare\Models\Fileshare;
|
|
|
|
use App\Fileshare\Resources\FileshareResource;
|
2024-06-27 00:00:29 +02:00
|
|
|
use App\Setting\LocalSettings;
|
|
|
|
|
2024-08-01 11:32:14 +02:00
|
|
|
class FileshareSettings extends LocalSettings
|
2024-06-27 00:00:29 +02:00
|
|
|
{
|
|
|
|
public static function group(): string
|
|
|
|
{
|
|
|
|
return 'fileshare';
|
|
|
|
}
|
|
|
|
|
2024-08-01 11:17:49 +02:00
|
|
|
public static function title(): string
|
2024-06-27 00:00:29 +02:00
|
|
|
{
|
2024-08-01 11:17:49 +02:00
|
|
|
return 'Datei-Verbindungen';
|
2024-06-27 00:00:29 +02:00
|
|
|
}
|
|
|
|
|
2024-08-01 11:17:49 +02:00
|
|
|
/**
|
|
|
|
* @inheritdoc
|
|
|
|
*/
|
|
|
|
public function viewData(): array
|
2024-06-27 00:00:29 +02:00
|
|
|
{
|
2024-08-01 11:17:49 +02:00
|
|
|
return [
|
|
|
|
'data' => FileshareResource::collection(Fileshare::paginate(15))
|
|
|
|
];
|
2024-06-27 00:00:29 +02:00
|
|
|
}
|
|
|
|
}
|