thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.75k stars 2.67k forks source link

Admin Panel Prefix #2623

Closed thill0822 closed 6 years ago

thill0822 commented 6 years ago

Is it possible to have the admin panel prefix go to the root directory? I'd like to have actually use a subdomain for the admin panel.

emptynick commented 6 years ago

I have not tested it personally, but you can try

Route::domain('admin.domain.com')->group(function () {
    Voyager::routes();
});
fletch3555 commented 6 years ago

I havent tested it, but it should mostly work. You'll likely have some issues doing that. Specifically, if you log in with a user that is not granted access to Voyager, it will try to redirect to /, likely causing an infinite loop. Other than that, I think everything should just work.

thill0822 commented 6 years ago

thanks @emptynick & @fletch3555. Will be testing in the next few days (hopefully) and will comment back on how it works along with any tweaks for future reference.

fletch3555 commented 6 years ago

Sounds good. I'll close this for now. Feel free to open it again if needed

QSoto commented 5 years ago

Is it working by now? I want to take voyager to -> sub.mydomain.com/admin instead mydomain.com/admin

Is it possible?

SAM-AEL commented 5 years ago

Is it working by now? I want to take voyager to -> sub.mydomain.com/admin instead mydomain.com/admin

Is it possible?

Route::group(['domain' => 'sub.mydomain.com', 'prefix' => 'admin '], function () { Voyager::routes(); });

Sanan-84 commented 4 years ago

Is it working by now? I want to take voyager to -> sub.mydomain.com/admin instead mydomain.com/admin

Is it possible?

i have too, but not working, pleace help

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.