We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b2e19c + 04be516 commit 172dd01Copy full SHA for 172dd01
src/AdminServiceProvider.php
@@ -5,6 +5,7 @@
5
use Encore\Admin\Layout\Content;
6
use Illuminate\Routing\Router;
7
use Illuminate\Support\Arr;
8
+use Illuminate\Support\Str;
9
use Illuminate\Support\Facades\Blade;
10
use Illuminate\Support\ServiceProvider;
11
@@ -99,7 +100,7 @@ public function boot()
99
100
*/
101
protected function ensureHttps()
102
{
- $is_admin = \Str::startsWith(request()->getRequestUri(), '/'.ltrim(config('admin.route.prefix'), '/'));
103
+ $is_admin = Str::startsWith(request()->getRequestUri(), '/'.ltrim(config('admin.route.prefix'), '/'));
104
if ((config('admin.https') || config('admin.secure')) && $is_admin) {
105
url()->forceScheme('https');
106
$this->app['request']->server->set('HTTPS', true);
0 commit comments