Rename initialize component

This commit is contained in:
philipp lang 2022-02-12 15:00:30 +01:00
parent 2cadb0d7c3
commit f323f1eaaf
2 changed files with 7 additions and 3 deletions

View File

@ -3,15 +3,19 @@
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() {
return \Inertia::render('Initialize/Index');
public function index(): Response
{
return \Inertia::render('Initialize/VIndex');
}
public function store() {
public function store(): RedirectResponse
{
InitializeJob::dispatch(auth()->user());
return redirect()->route('home');