|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
+use Illuminate\Database\Eloquent\Model;
|
|
|
use Illuminate\Routing\UrlGenerator;
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
@@ -22,11 +23,12 @@ class AppServiceProvider extends ServiceProvider
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function boot(UrlGenerator $url)
|
|
|
+ public function boot(UrlGenerator $url)
|
|
|
{
|
|
|
if (config('app.env') !== 'local') {
|
|
|
$url->forceScheme('https');
|
|
|
$this->app['request']->server->set('HTTPS','on');
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|