PHP: Generate Laravel Paginator Secure (HTTPS) Links
问题 I'm developing an app using Laravel 4.2 over HTTPS with secure routes and redirects. I'm using Paginator to paginate results, but the links rendered in the view points to the http pages, how can we force Paginator to generate https links? 回答1: I had this issue today and found this global solution. In your AppServiceProvider::boot method you can add the following to force https on pagination links $this->app['request']->server->set('HTTPS','on'); 回答2: If your current page is served over HTTPS,