Skip to content

Commit

Permalink
Patch: Redirection rules when system is not upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviqv committed Aug 31, 2018
1 parent 5d58c7b commit 986c6a0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/PanicHDServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,13 @@ public function boot()
}

} else{
Route::get('/tickets', function () {
Route::get('/tickets/{params?}', function () {
return redirect()->route('panichd.install.index');
});
Route::get('/tickets/{menu}', function () {
return redirect()->route('panichd.install.index');
});
Route::get('/panichd/{menu}', function () {
})->where('params', '(.*)');

Route::get('/panichd/{menu?}', function () {
return redirect()->route('panichd.install.index');
});
})->where('menu', '(.*)');
}
}

Expand Down

0 comments on commit 986c6a0

Please sign in to comment.