outl1ne / nova-settings

A Laravel Nova tool for editing custom settings using native Nova fields.
MIT License
271 stars 99 forks source link

Domain support for routes #168

Closed RonMelkhior closed 11 months ago

RonMelkhior commented 11 months ago

Laravel Nova natively supports specifying a domain for all its' routes, in-case of a multi-domain application and you want Nova to be accessible from only one domain

This is done using config('nova.domain') like so (snippet below is copied from the Nova codebase):

        Route::namespace('Laravel\Nova\Http\Controllers')
            ->domain(config('nova.domain', null))
            ->(..)

I was wondering if there's a chance to add support for this in nova-settings as well, or to add some route registration callbacks in order for me to add it.