adrema/app/Maildispatcher/Actions/CreateAction.php

25 lines
568 B
PHP
Raw Normal View History

2023-06-13 22:03:32 +02:00
<?php
namespace App\Maildispatcher\Actions;
use App\Maildispatcher\Resources\MaildispatcherResource;
use Inertia\Inertia;
use Inertia\Response;
use Lorisleiva\Actions\Concerns\AsAction;
class CreateAction
{
use AsAction;
public function asController(): Response
{
session()->put('menu', 'maildispatcher');
session()->put('title', 'Mail-Verteiler erstellen');
return Inertia::render('maildispatcher/MaildispatcherForm', [
'mode' => 'create',
'meta' => MaildispatcherResource::meta(),
]);
}
}