change provider

This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-12-07 11:37:19 +08:00
parent e0b299a0f3
commit ce97d4b26c
+8 -1
View File
@@ -13,6 +13,13 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
//
//check that app is local
if ($this->app->isLocal()) {
//if local register your services you require for development
$this->app->register('Barryvdh\Debugbar\ServiceProvider');
} else {
//else register your services you require for production
$this->app['request']->server->set('HTTPS', true);
}
}
}