Untitled

mail@pastecode.io avatar
unknown
php
25 days ago
538 B
3
Indexable
Never
<?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]);
    }
}
Leave a Comment