adrema/app/Activity/Actions/CreateAction.php

26 lines
500 B
PHP
Raw Normal View History

2023-02-25 18:00:23 +01:00
<?php
namespace App\Activity\Actions;
use App\Activity;
use App\Activity\Resources\ActivityResource;
use Inertia\Inertia;
use Inertia\Response;
use Lorisleiva\Actions\Concerns\AsAction;
class CreateAction
{
use AsAction;
public function handle(): Response
{
return Inertia::render('activity/VForm', [
'meta' => ActivityResource::meta(),
'data' => [
'name' => '',
'subactivities' => [],
]
]);
}
}