Untitled

 avatar
unknown
php
a year ago
538 B
6
Indexable
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class LogoController extends Controller
{
    public function getLogo()
    {
        $environment = env('APP_ENV'); // Ambil environment dari file .env
        $logoUrl = '';

        if ($environment === 'BWS') {
            $logoUrl = url('/images/logo_bws.png');
        } elseif ($environment === 'JTRUST') {
            $logoUrl = url('/images/logo_jtrust.png');
        }

        return response()->json(['logoUrl' => $logoUrl]);
    }
}
Editor is loading...
Leave a Comment