From f323f1eaaf76d7b2e45b2ad1aad370cfe057634f Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 12 Feb 2022 15:00:30 +0100 Subject: [PATCH] Rename initialize component --- app/Initialize/InitializeController.php | 10 +++++++--- .../js/views/Initialize/{Index.vue => VIndex.vue} | 0 2 files changed, 7 insertions(+), 3 deletions(-) rename resources/js/views/Initialize/{Index.vue => VIndex.vue} (100%) diff --git a/app/Initialize/InitializeController.php b/app/Initialize/InitializeController.php index ad5a46a1..fbb2097b 100644 --- a/app/Initialize/InitializeController.php +++ b/app/Initialize/InitializeController.php @@ -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'); diff --git a/resources/js/views/Initialize/Index.vue b/resources/js/views/Initialize/VIndex.vue similarity index 100% rename from resources/js/views/Initialize/Index.vue rename to resources/js/views/Initialize/VIndex.vue