laraestimate
laraestimate copied to clipboard
Forced generate HTTPS routes
I use LaraEstimate behind Nginx proxy_pass with SSL.
Here is my modification to force the app to generate links and routes with https :
root/app/Providers/AppServiceProvider.php
- Add
use Illuminate\Support\Facades\URL;
:
<?php
namespace App\Providers;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use KgBot\LaravelLocalization\Facades\ExportLocalizations;
use Illuminate\Support\Facades\URL;
...
- Add
URL::forceScheme('https');
inboot()
function :
public function boot()
{
URL::forceScheme('https');
...