https
This commit is contained in:
parent
65ded6ea37
commit
1d9d27436f
1 changed files with 4 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ namespace App\Providers;
|
|||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Illuminate\Support\Facades\App;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
|
@ -14,7 +15,9 @@ class AppServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function boot()
|
||||
{
|
||||
URL::forceScheme('https');
|
||||
if (App::environment() === 'production' || App::environment() === 'dev') {
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
$this->loadViewsFrom(public_path('/landings'), 'landings');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue