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