2024-06-27 00:00:29 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Fileshare\Actions;
|
|
|
|
|
2024-06-27 17:41:54 +02:00
|
|
|
use App\Fileshare\Models\Fileshare;
|
|
|
|
use App\Fileshare\Resources\FileshareResource;
|
2024-06-27 00:00:29 +02:00
|
|
|
use Inertia\Inertia;
|
2024-06-27 10:52:45 +02:00
|
|
|
use Inertia\Response;
|
2024-06-27 00:00:29 +02:00
|
|
|
use Lorisleiva\Actions\Concerns\AsAction;
|
|
|
|
|
2024-06-27 12:48:20 +02:00
|
|
|
class FileshareIndexAction
|
2024-06-27 00:00:29 +02:00
|
|
|
{
|
|
|
|
use AsAction;
|
|
|
|
|
2024-06-27 10:52:45 +02:00
|
|
|
public function handle(): Response
|
2024-06-27 00:00:29 +02:00
|
|
|
{
|
|
|
|
session()->put('menu', 'setting');
|
|
|
|
session()->put('title', 'Datei-Verbindungen');
|
|
|
|
|
2024-06-27 18:04:58 +02:00
|
|
|
return Inertia::render('fileshare/Index', [
|
2024-06-27 17:41:54 +02:00
|
|
|
'data' => FileshareResource::collection(Fileshare::paginate(15)),
|
2024-06-27 00:00:29 +02:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|