Search code examples
laravelvoyager

I can't access the Voyager admin panel after installing


I tried hard-coding an admin panel in my Laravel project only to find out about Voyager.

So I installed voyager on my project (the admin panel files are still there).

However, every time I test it out by going to mydomain.test/dashboard/login , it keeps going back to my site's index page.

Do you think it has something to do with my hardcoded admin panel files? The files are inside the project folder prior to installing voyager.

Or I'm missing something here?

I changed the route's prefix into 'dashboard' instead of 'admin' because my hardcoded admin panel is using 'admin'.

    Route::get('/', function () {
        return view('front');
    });

    Route::group(['prefix' => 'dashboard'], function () {
        Voyager::routes();
    });

I want to access the Voyager admin panel.


Solution

  • [UPDATE] I have finally resolved this issue by simply adding a new user and grant admin access to it.