Skip to content

Running nova-assertions for nova on a subdomain #23

@FrazeColder

Description

@FrazeColder

Hi,

I have created a project with Laravel Nova as a backend service to mange my project. However, my Laravel Nova is accessible via nova.mywebsiteproject.test. So, basically it lies on a subdomain which is, in my opinion, better.

However, sadly this project does not support subdomains. Is there any possibility we can add this kind of feature to this project? This would be awesome!

If anyone is wondering how you can route Laravel Nova via a subdomain, this is how. You have to add this is the config/nova.php file:

/*
|--------------------------------------------------------------------------
| Nova App URL
|--------------------------------------------------------------------------
|
| This URL is where users will be directed when clicking the application
| name in the Nova navigation bar. You are free to change this URL to
| any location you wish depending on the needs of your application.
|
*/

'url' => env('NOVA_SUBDOMAIN') . "." . env('APP_DOMAIN'),

/*
|--------------------------------------------------------------------------
| Nova App Domain
|--------------------------------------------------------------------------
|
*/

'domain' => env('NOVA_SUBDOMAIN') . "." . env('APP_DOMAIN'),

Kind regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions