change provider
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user