adrema/app/Initialize/InitializeController.php

24 lines
466 B
PHP

<?php
namespace App\Initialize;
use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Inertia\Response;
class InitializeController extends Controller
{
public function index(): Response
{
return \Inertia::render('Initialize/VIndex');
}
public function store(): RedirectResponse
{
InitializeJob::dispatch(auth()->user());
return redirect()->route('home');
}
}