nova-assertions icon indicating copy to clipboard operation
nova-assertions copied to clipboard

Running nova-assertions for nova on a subdomain

Open FrazeColder opened this issue 4 years ago • 3 comments

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!

FrazeColder avatar Feb 26 '21 08:02 FrazeColder