Welcome Guest, Not a member yet? Register   Sign In
Setting baseURL in Registrar not working
#4

Unable to reproduce your error, here is a live example.

The code for app/Config/Registrar.php
PHP Code:
<?php

namespace App\Config;

class 
Registrar
{
    public static function 
Database(): array
    {
        return [
            
'default' => [
                
'database' => 'default.db',
                
'DBDriver' => 'SQLite3',
            ],
        ];
    }

    public static function 
App(): array
    {
        return [
            
'baseURL' => match(ENVIRONMENT) {
                
'staging' => 'http://mydomain.com/',
                default => 
'http://192.168.0.1:81/',
            },
            
'indexPage' => '',
            
'appTimezone' => 'America/New_York',
        ];
    }

Reply


Messages In This Thread
RE: Setting baseURL in Registrar not working - by grimpirate - 05-15-2025, 02:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB