dillingham / nova-assertions

Laravel Nova assertions for your tests
MIT License
79 stars 16 forks source link

Running nova-assertions for nova on a subdomain #23

Open FrazeColder opened 3 years ago

FrazeColder commented 3 years ago

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!

RhysLees commented 1 month ago

@FrazeColder, @dillingham Is there any update on this? also running into the same issue

dillingham commented 1 month ago

@FrazeColder, @dillingham Is there any update on this? also running into the same issue

Someone should fork this if they want fixes. I don't plan on working on nova packages anymore, sorry

RhysLees commented 1 month ago

@FrazeColder, @dillingham Is there any update on this? also running into the same issue

Someone should fork this if they want fixes. I don't plan on working on nova packages anymore, sorry

No problem, ill see what i can do Thanks!