Hello Friends đź‘‹,

Welcome To Infinitbility! ❤️

using the URL() helper is great for creating full HTTP links, I use this for all links, when working locally HTTP is fine but when going Production you want to use https instead. Replace Your app\Providers\AppServiceProvider.php from below code using this code Laravel on production force helper to use https URL.


<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Routing\UrlGenerator;
class AppServiceProvider extends ServiceProvider
{
     /**
      * Bootstrap any application services.
      *
      * @return void
      */
      public function boot(UrlGenerator $url)
      {
              if (env('APP_ENV') !== 'local') {
                    $url->forceScheme('https');
              }
       }
      /**
       * Register any application services.
       *
       * @return void
       */
       public function register()
       {
              //
       }
}

More tutorial form Laravel

Yajra issue after install in laravel

Laravel call function from another class

laravel pagination with customization

How to solve page expired error in laravel for webhooks, ajax, and form

Laravel Model

Laravel Clear cache, config, view and Routes

how to force Laravel to use https in URL and assets

Thanks for reading…