2020-04-12 00:26:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Initialize;
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
2021-11-20 01:43:20 +01:00
|
|
|
use Illuminate\Http\Request;
|
2020-04-12 00:26:44 +02:00
|
|
|
|
|
|
|
class InitializeController extends Controller
|
|
|
|
{
|
|
|
|
public function index() {
|
|
|
|
return \Inertia::render('Initialize/Index');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function store() {
|
|
|
|
InitializeJob::dispatch(auth()->user());
|
|
|
|
|
2021-11-20 01:43:20 +01:00
|
|
|
return redirect()->route('home');
|
2020-04-12 00:26:44 +02:00
|
|
|
}
|
|
|
|
}
|