laravel / nova-issues

554 stars 35 forks source link

How to install both nova in a laravel project #916

Closed zhouchang2017 closed 5 years ago

zhouchang2017 commented 5 years ago

How to install both nova in a laravel project,

For example one is domain.test/admin, The other is domain.test/dashboard

ahaneef29 commented 5 years ago

@zhouchang2017 By default you can access Nova by domain.test\nova If you want to change URI path. Go to LaravelApp/config/nova.php Search for 'path' => '/nova', Here you can change your own url.

zhouchang2017 commented 5 years ago

@haneef5k Maybe I didn't describe it clearly,

I want to install both nova, one for site users and one for site administrators

waygou commented 5 years ago

What I do is I have 2 subdomains with 2 different laravel projects installed. The license covers domain names, so you can have sub-domains installed there.

Then, both point to the same database connection.

You'll have

admin.domain.test/nova and dashboard.domain.test/nova

shirshak55 commented 5 years ago

@waygou it is same codebase so subdomain level don't seem to be matching. May be he want to create customer side admin panel and admin side admin panel just url is different. Its a edge case.

zhouchang2017 commented 5 years ago

@shirshak55 All I want to say is what you said, I want to share a set of code base to do different user management systems

shirshak55 commented 5 years ago

@zhouchang2017 it may be abit difficult but you can use permissions, authorizations etc. with this you can hide the thing from customer that you don't want to see. If you want admin not to see you can hide it too. But i am thinking boilerplate will be too high . How about you just reuse the same database but different code base?

ahaneef29 commented 5 years ago

@zhouchang2017 I would like to suggest you to point root domain which is domain.test, but based on the user role you can show the resources. This way easily you can maintain the one code base.

davidhemphill commented 5 years ago

Use one copy of Nova and use the authorization methods and policies to provide access to resources.