fix minor change
This commit is contained in:
parent
85a319def4
commit
29df87d11a
|
|
@ -3,7 +3,7 @@
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Illuminate\Support\Facades\URL; // <-- 1. Tambahkan baris ini di sini
|
use Illuminate\Support\Facades\URL;
|
||||||
|
|
||||||
class AppServiceProvider extends ServiceProvider
|
class AppServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
|
@ -20,7 +20,6 @@ public function register(): void
|
||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
// <-- 2. Tambahkan blok kode ini
|
|
||||||
if (config('app.env') === 'production') {
|
if (config('app.env') === 'production') {
|
||||||
URL::forceScheme('https');
|
URL::forceScheme('https');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue