adrema/app/Fileshare/FileshareSettings.php

37 lines
704 B
PHP
Raw Normal View History

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-08-01 10:25:48 +02:00
use App\Setting\Contracts\Viewable;
2024-06-27 00:00:29 +02:00
use App\Setting\LocalSettings;
2024-08-01 10:25:48 +02:00
class FileshareSettings extends LocalSettings implements Viewable
2024-06-27 00:00:29 +02:00
{
public static function group(): string
{
return 'fileshare';
}
public static function slug(): 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
}
}