Fix Routes
This commit is contained in:
parent
eb4f197823
commit
dc04959a56
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="PublishConfigData" autoUpload="On explicit save action" serverName="ncore.smart_firewall" autoUploadExternalChanges="true">
|
||||
<component name="PublishConfigData" autoUpload="On explicit save action" serverName="ncore.smart_firewall" confirmBeforeUploading="false" autoUploadExternalChanges="true">
|
||||
<option name="confirmBeforeUploading" value="false" />
|
||||
<serverData>
|
||||
<paths name="edm-maker.com">
|
||||
<serverdata>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -10,10 +10,10 @@ Route::get('/', function () {
|
|||
Route::Group(['prefix' => 'cp', 'middleware' => 'web'], function () {
|
||||
Route::get('/', function (\Illuminate\Http\Request $request) {
|
||||
if (!Auth::check()) {
|
||||
return redirect('auth');
|
||||
return redirect()->route('auth');
|
||||
} else {
|
||||
return redirect('dashboard');
|
||||
return redirect()->route('dashboard');
|
||||
}
|
||||
});
|
||||
Route::get('auth',[\App\Http\Controllers\SmartController::class, 'index']);
|
||||
Route::get('auth/',[\App\Http\Controllers\SmartController::class, 'index'])->name('auth');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue