Require HTTPS configurable

This commit is contained in:
David Bomba 2020-06-18 09:49:05 +10:00
parent 9acbac7402
commit a669e9342f

View File

@ -314,11 +314,10 @@ class BaseController extends Controller
public function flutterRoute() public function flutterRoute()
{ {
// // Ensure all request are over HTTPS in production if (config('ninja.require_https') && !request()->isSecure()) {
// if (! request()->secure()) { return redirect()->secure(request()->getRequestUri());
// return redirect()->secure(request()->path()); }
// }
if ((bool)$this->checkAppSetup() !== false && Schema::hasTable('accounts') && $account = Account::all()->first()) { if ((bool)$this->checkAppSetup() !== false && Schema::hasTable('accounts') && $account = Account::all()->first()) {
$data = []; $data = [];