Rename initialize component
This commit is contained in:
parent
2cadb0d7c3
commit
f323f1eaaf
|
@ -3,15 +3,19 @@
|
||||||
namespace App\Initialize;
|
namespace App\Initialize;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use Illuminate\Http\RedirectResponse;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Inertia\Response;
|
||||||
|
|
||||||
class InitializeController extends Controller
|
class InitializeController extends Controller
|
||||||
{
|
{
|
||||||
public function index() {
|
public function index(): Response
|
||||||
return \Inertia::render('Initialize/Index');
|
{
|
||||||
|
return \Inertia::render('Initialize/VIndex');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function store() {
|
public function store(): RedirectResponse
|
||||||
|
{
|
||||||
InitializeJob::dispatch(auth()->user());
|
InitializeJob::dispatch(auth()->user());
|
||||||
|
|
||||||
return redirect()->route('home');
|
return redirect()->route('home');
|
||||||
|
|
Loading…
Reference in New Issue