26 lines
525 B
PHP
26 lines
525 B
PHP
<?php
|
|
|
|
namespace App\Activity\Actions;
|
|
|
|
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' => '',
|
|
'is_filterable' => false,
|
|
'subactivities' => [],
|
|
],
|
|
]);
|
|
}
|
|
}
|