PHP: Generate Laravel Paginator Secure (HTTPS) Links

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');

Leave a Comment