Voyager Route keep coming back to homepage after login in Shared Hosting Installation


October 6, 01:24 AM

Hi Guys, I need help in this strange behavior...

I somehow need to install laravel and voyager in my shared hosting site. My Shared hosting site can handle some CLI. But I tried "composer require tcg/voyager" and it fails. So I install laravel and voyager locally and push to git then I followed this configuration except the autoload one, which I change it to vendor folder

then I do "composer install", generate key, and do artisan migrate

Then the website just live.. I go to /admin and it direct me to the login page. If I try wrong credentials, it denies me. But if I enter the right one, it just direct me to home page (/). If I manually go to /admin again, it just direct me again to the homepage. I tried to go to /admin/logout and it give error because it only accept POST. So maybe the router is kinda working, I suspect there is some changes needed in .htaccess in public folder (which I use the default one).

What did I do wrong? Please help me here... Any help or suggestion would be appreciated..

Select One:

October 7, 05:00 AM

Best Answer

Hi there,

Have you tried reinstalling Voyager and including the dummy data?

php artisan voyager:install --with-dummy

Let me know how it goes!

Select One:

October 8, 10:00 PM

Hi, thank you very much for your answer, It works perfect!

Select One:

October 9, 07:26 AM


No problem at all, happy to hear that it works as expected now!

Select One:

Markdown Basics

DevDojo uses Markdown syntax for writing posts, commments, and other content throughout the site. Below you will find some commonly used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet

Bold & Italic

Italics *asterisks*

Bold **double asterisks**


Inline Code `backtick`

Code Block

Three back ticks and then enter your code blocks here.


# This is Heading 1
## This is Heading 2
### This is Heading 3
#### This is Heading 4
##### This is Heading 5

Here is an example of how each heading will looks

Heading 1

Heading 2

Heading 3

Heading 4
Heading 5


> type a greater than sign and start typing your quote.


You can add links by typing the alt text inside of [] and the link inside of (), like so:



You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of [], and the link inside of (), like so:

![alt text for image](

Embedding Codepens

You can also embed a codepen pen by writing the following:

{% codepen %}

You may also choose the default tabs you wish to show your pen by writing the default-tab like so: (default is result)

{% codepen default-tab=result,html %}

That's about it. It's time to start crafting your story.

Please login, or signup to write a response.

© 2020 DevDojo LLC. All rights reserved.