fix: hinting type dan route untuk 'LoginController'
This commit is contained in:
parent
d2f0b523d9
commit
38743fd4d6
@ -10,10 +10,10 @@
|
||||
|
||||
class LoginController extends Controller
|
||||
{
|
||||
public function index(): View
|
||||
public function index(): View|RedirectResponse
|
||||
{
|
||||
if (Auth::check()) {
|
||||
return redirect()->route('admin.overview');
|
||||
return redirect()->route('dashboard.overview');
|
||||
}
|
||||
|
||||
return view('pages.auth.login', [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user