2023-03-07 01:35:39 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Activity\Api;
|
|
|
|
|
|
|
|
use App\Resources\SubactivityResource;
|
|
|
|
use App\Subactivity;
|
|
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
use Lorisleiva\Actions\Concerns\AsAction;
|
|
|
|
|
|
|
|
class SubactivityShowAction
|
|
|
|
{
|
|
|
|
use AsAction;
|
|
|
|
|
2023-03-07 10:13:30 +01:00
|
|
|
public function handle(): void
|
2023-03-07 01:35:39 +01:00
|
|
|
{
|
2023-03-07 10:13:30 +01:00
|
|
|
return;
|
2023-03-07 01:35:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function asController(Subactivity $subactivity): JsonResponse
|
|
|
|
{
|
|
|
|
return response()->json([
|
|
|
|
'data' => new SubactivityResource($subactivity),
|
|
|
|
'meta' => SubactivityResource::meta(),
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|