Force HTTPS in Laravel Code Example
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { public function boot() { if($this->app->environment('production')) { \URL::forceScheme('https'); } } }
Leave a reply