Skip to content

Instantly share code, notes, and snippets.

@Maras0830
Created June 17, 2017 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maras0830/c3c3b4175196f3401523484aca424c85 to your computer and use it in GitHub Desktop.
Save Maras0830/c3c3b4175196f3401523484aca424c85 to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->app['request']->server->set('HTTPS', $this->app->environment() == 'production');
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment